Right Click on dialong button.
-
I need the capablitiy to right click on dialog button and display a CMenu object that will have list of options that can be performed. As of right now, I am unable to capture a right mouse click over a dialog button. I am using the ON_WM_RBUTTONDOWN(). The message captures the right mouse clicks over the empty dialog space but no use for me. . Anyone can recommend, a way to capture right mouse clicks over dialog buttons. I do need to know which button i am over.
Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures
-
I need the capablitiy to right click on dialog button and display a CMenu object that will have list of options that can be performed. As of right now, I am unable to capture a right mouse click over a dialog button. I am using the ON_WM_RBUTTONDOWN(). The message captures the right mouse clicks over the empty dialog space but no use for me. . Anyone can recommend, a way to capture right mouse clicks over dialog buttons. I do need to know which button i am over.
Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures
Subclass CButton (for the buttons on your dialog) to detect the right button clicks and send some form of notification (a Windows message of some sort) to the dialog? That's pretty much what I'd do in WTL, although as WTL has the concept of forwarding messages from sub-classed controls to their containers, it'd be a bit simpler.
-
I need the capablitiy to right click on dialog button and display a CMenu object that will have list of options that can be performed. As of right now, I am unable to capture a right mouse click over a dialog button. I am using the ON_WM_RBUTTONDOWN(). The message captures the right mouse clicks over the empty dialog space but no use for me. . Anyone can recommend, a way to capture right mouse clicks over dialog buttons. I do need to know which button i am over.
Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures