CHeaderCtrl messages from CListView based View
-
Hello, I've read the article here about getting header control messages from a CListCtrl. It describes how CHeaderCtrl is in CListCtrl and how to reassign (from the wizard) the dialog item ID to 0 for CHeaderCtrl in rerouting messages. However, my case is slightly different. My main view is derived directly from CListView:
class CMyMainView : public CListView
... and in this case, the wizard places ON_NOTIFY_REFLECT macros for all messages. I would like this class to handle some header events (such as click on header button to sort) but I cannot seem to find a way to route the message to where I want. Any help/pointers to resources? Thanks! JennyP -
Hello, I've read the article here about getting header control messages from a CListCtrl. It describes how CHeaderCtrl is in CListCtrl and how to reassign (from the wizard) the dialog item ID to 0 for CHeaderCtrl in rerouting messages. However, my case is slightly different. My main view is derived directly from CListView:
class CMyMainView : public CListView
... and in this case, the wizard places ON_NOTIFY_REFLECT macros for all messages. I would like this class to handle some header events (such as click on header button to sort) but I cannot seem to find a way to route the message to where I want. Any help/pointers to resources? Thanks! JennyPCan you use LVN_COLUMNCLICK? Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.