On Thu, 5 Aug 1999 13:26:29 +0100, "Steve Wentworth"
Quote:
>Mattias
>Do you have any examples of what WM_NCxxx messages to capture, the project
>this is for allready contains a subclass procedure for the form so all i
>need to do is drop in the capture messages.
>Thanks
>Steve
Steve,
Well, the most important one is definitely WM_NCPAINT, which indicates
it's time for you to (re)draw your button. But since you want it to
act like a button, you'd also probably want to catch the various mouse
messages, like WM_NCLBUTTONDOWN / ...UP.
BTW, if you haven't figured out how to draw your button yet, I suggest
that you take a look at the DrawFrameControl function. It makes it
really easy to draw all kinds of buttons.
Mattias
________________________________________________
Mattias "BeeZo" Sj?gren
http://home1.2.sbbs.se/mattias.sjogren/sw/