Hi,

I am trying to make a toggle alike pushbutton inside a dialog.
In the attached code the button works fine if you click it. However if the button is toggled on and you click on any other control in the dialogbox the button gets unhilited. Does anyone have idea why this happens? I have tried subclassing the button, using different message sending functions, add more checks inside WM_COMMAND message handler..

Attachments:
Posted on 2005-10-01 06:32:01 by arafel
hmmm, why not use checkbox with BS_PUSHLIKE style? ;)
Posted on 2005-10-01 06:46:57 by drizz
i didn't know that checkbox + BS_PUSHLIKE will act this way...

thanks drizz  :D
Posted on 2005-10-01 07:12:06 by arafel