PDA

View Full Version : SECBitmapButton and m_bIsHot



nicjedi
08-22-2008, 01:19 AM
Hi all, I have a problem with some SECBitmapButtons, when I manually set the Highlight state using the basis CButton function SetState.
Sometimes, I need that a button is pressed until a dialog is closed (like a switch button), then I set SetState( TRUE) when the button is clicked, and SetState( FALSE) when the dialog is closed.
The problem is that the m_bIsHot variable isn't reset to FALSE when I call the SetState( FALSE) function, and the button draw hot until I move the mouse Over.
I think that the SECBitmapButton have to intercept the SetState function to set the Hot State...

Bye

Nicola