Why CButton-derived class with BS_GROUPBOX style doesn't get messages?
-
Hi I try to create my own GroupBox (CButton class with BS_GROUPBOX style) control but that class doesn't get any messages from the mouse: WM_MOUSEMOVE, WM_LBUTTONDOWN, WM_LBUTTONUP and etc. I can't understand why. Can anyone help me?
-
Have you added a message map to your class, as described in https://msdn.microsoft.com/en-us/library/yf1wax6c.aspx[^]?
-
Hi I try to create my own GroupBox (CButton class with BS_GROUPBOX style) control but that class doesn't get any messages from the mouse: WM_MOUSEMOVE, WM_LBUTTONDOWN, WM_LBUTTONUP and etc. I can't understand why. Can anyone help me?
A group box is by design not intended to handle mouse messages but passes them through. You might have a look at this StackOverflow thread which seems to provide a solution: http://stackoverflow.com/questions/2541714/adding-click-double-click-events-to-static-group-box-controls[^]
-
A group box is by design not intended to handle mouse messages but passes them through. You might have a look at this StackOverflow thread which seems to provide a solution: http://stackoverflow.com/questions/2541714/adding-click-double-click-events-to-static-group-box-controls[^]