Click here to Skip to main content
15,887,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl - header notification ??? Pin
Jonas Larsson4-Jan-02 4:26
Jonas Larsson4-Jan-02 4:26 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus4-Jan-02 10:36
protectorChristian Graus4-Jan-02 10:36 
AnswerRe: CListCtrl - header notification ??? Pin
Fazlul Kabir4-Jan-02 5:23
Fazlul Kabir4-Jan-02 5:23 
GeneralRe: CListCtrl - header notification ??? Pin
Fazlul Kabir4-Jan-02 5:34
Fazlul Kabir4-Jan-02 5:34 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus4-Jan-02 10:34
protectorChristian Graus4-Jan-02 10:34 
GeneralRe: CListCtrl - header notification ??? Pin
Fazlul Kabir4-Jan-02 10:48
Fazlul Kabir4-Jan-02 10:48 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus4-Jan-02 11:12
protectorChristian Graus4-Jan-02 11:12 
GeneralRe: CListCtrl - header notification ??? Pin
Fazlul Kabir4-Jan-02 12:45
Fazlul Kabir4-Jan-02 12:45 
I see what your're getting at. Perhaps I got confused with BEGIN and END track messages I saw in several replies.

I did some quick test using message trapping option of Spy++, and it seems that HDN_TRACK is not caught. However I saw HDN_ITEMCHANGINGW notification as I changed the sizes of header items. Thus I guess you can use that as a workaround. Here is the quick code I wrote:

BEGIN_MESSAGE_MAP(CMyHeaderCtrl, CHeaderCtrl)
	//{{AFX_MSG_MAP(CMyHeaderCtrl)
	ON_NOTIFY_REFLECT(HDN_BEGINTRACKA, OnHdnBegintrack)
	ON_NOTIFY_REFLECT(HDN_BEGINTRACKW, OnHdnBegintrack)
	ON_NOTIFY_REFLECT(HDN_ENDTRACKA, OnHdnEndtrack)
	ON_NOTIFY_REFLECT(HDN_ENDTRACKW, OnHdnEndtrack)
	ON_NOTIFY_REFLECT(HDN_ITEMCHANGINGW, OnHdnItemChanging)
	ON_NOTIFY_REFLECT(HDN_ITEMCHANGINGA, OnHdnItemChanging)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


void CMyHeaderCtrl::OnHdnItemChanging(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMHEADER phdr = reinterpret_cast<LPNMHEADER>(pNMHDR);
	// TODO: Add your control notification handler code here
	*pResult = 0;
}


Let me know if it helps.

// Fazlul


Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com

GeneralAaaAAaAARRrRRgGgHHH!!!! KERNEL32.DLL ERROR!! Pin
Rickard Andersson2030-Dec-01 12:08
Rickard Andersson2030-Dec-01 12:08 
Generalno focus Pin
Rickard Andersson2030-Dec-01 12:13
Rickard Andersson2030-Dec-01 12:13 
GeneralRe: AaaAAaAARRrRRgGgHHH!!!! KERNEL32.DLL ERROR!! Pin
squizz31-Dec-01 4:37
squizz31-Dec-01 4:37 
GeneralRe: AaaAAaAARRrRRgGgHHH!!!! KERNEL32.DLL ERROR!! Pin
Rickard Andersson2031-Dec-01 5:03
Rickard Andersson2031-Dec-01 5:03 
GeneralOptimizing memory usage Pin
IGx8930-Dec-01 11:53
IGx8930-Dec-01 11:53 
GeneralRe: Optimizing memory usage Pin
Konstantin Vasserman30-Dec-01 15:44
Konstantin Vasserman30-Dec-01 15:44 
GeneralRe: Optimizing memory usage Pin
IGx8930-Dec-01 15:58
IGx8930-Dec-01 15:58 
GeneralRe: Optimizing memory usage Pin
Konstantin Vasserman30-Dec-01 16:15
Konstantin Vasserman30-Dec-01 16:15 
Questionhow'd they do that? Pin
hforbess30-Dec-01 11:28
hforbess30-Dec-01 11:28 
AnswerRe: how'd they do that? Pin
Michael P Butler31-Dec-01 1:59
Michael P Butler31-Dec-01 1:59 
Generalfor example Pin
hforbess31-Dec-01 13:53
hforbess31-Dec-01 13:53 
GeneralSyntax colouring Pin
Jon Newman30-Dec-01 8:42
Jon Newman30-Dec-01 8:42 
GeneralRe: Syntax colouring Pin
Shog930-Dec-01 8:46
sitebuilderShog930-Dec-01 8:46 
GeneralRe: Syntax colouring Pin
Jon Newman30-Dec-01 8:53
Jon Newman30-Dec-01 8:53 
GeneralRe: Syntax colouring Pin
Chris Losinger30-Dec-01 8:57
professionalChris Losinger30-Dec-01 8:57 
GeneralRe: Syntax colouring Pin
Jon Newman30-Dec-01 9:04
Jon Newman30-Dec-01 9:04 
GeneralRe: Syntax colouring Pin
Chris Losinger30-Dec-01 9:09
professionalChris Losinger30-Dec-01 9:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.