Discussion:
Chevron for deskband does not show as pushed.
(too old to reply)
Matt
2006-10-24 15:45:33 UTC
Permalink
Hello, I catch the RBN_CHEVRONPUSHED notification. When finished I return 0.
The problems would be that the chevron does not display in a pushed state
when I click it with the mouse though everything else seems fine. How can I
fix it?
Thanks from Matt.
Ben Voigt
2006-10-25 18:05:02 UTC
Permalink
Post by Matt
Hello, I catch the RBN_CHEVRONPUSHED notification. When finished I return 0.
After processing, return DefWindowProc(....) instead of 0.
Post by Matt
The problems would be that the chevron does not display in a pushed state
when I click it with the mouse though everything else seems fine. How can I
fix it?
Thanks from Matt.
Matt
2006-10-25 22:35:58 UTC
Permalink
Post by Ben Voigt
Post by Matt
Hello, I catch the RBN_CHEVRONPUSHED notification. When finished I return 0.
After processing, return DefWindowProc(....) instead of 0.
If I do that a strange rectangular popup window appears. It looks as though
a pupup menu needs to be created during the processing of this notification
and then return without calling DefWindowProc(...) to prevent the strange
window from appearing.

Thanks
Matt.
Ben Voigt
2006-10-26 13:45:24 UTC
Permalink
Post by Matt
Post by Ben Voigt
Post by Matt
Hello, I catch the RBN_CHEVRONPUSHED notification. When finished I return 0.
After processing, return DefWindowProc(....) instead of 0.
If I do that a strange rectangular popup window appears. It looks as
though a pupup menu needs to be created during the processing of this
notification and then return without calling DefWindowProc(...) to prevent
the strange window from appearing.
According to
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/faq/ietoolbar.asp?frame=true#handle_chevrons,
it's intended that you call TrackPopupMenu. You may be able to substitute
your own popup window, but I suspect you'll need to keep TrackPopupMenu's
blocking behavior.

In other words, the chevron will be drawn pushed, you'll be sent
RBN_CHEVRONPUSHED, and as soon as you return the chevron is drawn flat
again.

And you're most likely right that DefWindowProc is not necessary, sorry for
the bad tip.
Post by Matt
Thanks
Matt.
Loading...