MFC ON_WM_RBUTTONUP(), handle within control class
-
I've got a custom control class that derives from CStatic that should handle WM_RBUTTONUP within its code. unfortunately this message is always redirected to the parent window (a CDialog). What can i do?
Don't try it, just do it! ;-)
-
I've got a custom control class that derives from CStatic that should handle WM_RBUTTONUP within its code. unfortunately this message is always redirected to the parent window (a CDialog). What can i do?
Don't try it, just do it! ;-)
Just a guess here but does your static maybe have the SS_NOTIFY style set? If yes then try removing it.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Just a guess here but does your static maybe have the SS_NOTIFY style set? If yes then try removing it.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
Ah thx, I found it. When SS_NOTIFY isn't set the static control doesn't answer WM_NCHITTEST with HTCLIENT so the messages go to the parent window.
Don't try it, just do it! ;-)