subclassing and messages
-
If you subclass a CListCtrl and call it CMyListCtrl and then use the CMyListCtrl as a member variable in a dialog box, some of the messages are caught by the parent dialog and some are sent to the CMyListCtrl. I was wondering if there is a way to direct these to catch these in my actual dialog instead of in my control.
-
If you subclass a CListCtrl and call it CMyListCtrl and then use the CMyListCtrl as a member variable in a dialog box, some of the messages are caught by the parent dialog and some are sent to the CMyListCtrl. I was wondering if there is a way to direct these to catch these in my actual dialog instead of in my control.
PreTranslateMessage() Renjith-CPian.
-
If you subclass a CListCtrl and call it CMyListCtrl and then use the CMyListCtrl as a member variable in a dialog box, some of the messages are caught by the parent dialog and some are sent to the CMyListCtrl. I was wondering if there is a way to direct these to catch these in my actual dialog instead of in my control.
It seems you've used message reflection to handle control notifications. If you want to give dialog a chance to handle them as well, use ON_NOTIFY_REFLECT_EX and return FALSE from handler defined in control class. Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.