HDN_ITEMCHANGED mesage on CListView
-
Hello, I want to do something whenever on of the header columns in my CListView changes in size. For that I catch the HDN_ITEMCHANGED message. But that one is not fired in the CListView. What I have is a message entry: ON_NOTIFY_REFLECT(HDN_ITEMCHANGED, OnItemchanged) I've read the article by Matt Damon 'Using the CHeaderCtrl', and he mentions something about that, but the article is based on the CListCtrl, not the CListView, so the workaroud doesn't seem applicable for me. Anyone knows how this message is fired in the CListView? Thanks Wim
-
Hello, I want to do something whenever on of the header columns in my CListView changes in size. For that I catch the HDN_ITEMCHANGED message. But that one is not fired in the CListView. What I have is a message entry: ON_NOTIFY_REFLECT(HDN_ITEMCHANGED, OnItemchanged) I've read the article by Matt Damon 'Using the CHeaderCtrl', and he mentions something about that, but the article is based on the CListCtrl, not the CListView, so the workaroud doesn't seem applicable for me. Anyone knows how this message is fired in the CListView? Thanks Wim
WM_NOTIFY
messages are sent by a control to its parent. SoHDN_*
messages are sent from the header to the list. Therefore,ON_NOTIFY_REFLECT
is the wrong macro to use since the message isn't sent by the list. (That would be right if you were trying to handle, sayLVN_ITEMCHANGED
) Use regularON_NOTIFY
. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released -
WM_NOTIFY
messages are sent by a control to its parent. SoHDN_*
messages are sent from the header to the list. Therefore,ON_NOTIFY_REFLECT
is the wrong macro to use since the message isn't sent by the list. (That would be right if you were trying to handle, sayLVN_ITEMCHANGED
) Use regularON_NOTIFY
. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released