CListCtrl and HDN_BEGINTRACK
Lance Lovette -- lovette@iftech.com
Tuesday, February 20, 1996
[Windows NT 3.51 SP3, MSDEV 4.0]
I wanted to have my list view control handle the HDN_BEGINTRACK message
it's header control sends it. The thing is that the header control doesn't
send the HDN_BEGINTRACK message, it sends the UNICODE version HDN_BEGINTRACKW.
I'm not using UNICODE so HDN_BEGINTRACK is defined as HDN_BEGINTRACKA. Why
is the header control sending the UNICODE version? Why do some notification
messages such as LVN_COLUMNCLICK only have one definition but others such as
HDN_BEGINTRACK or LVN_BEGINLABELEDIT have two definitions? Is Windows 95
going to send the UNICODE version too or do I have to watch for both
HDN_BEGINTRACKA and HDN_BEGINTRACKW?
Thanks,
Lance Lovette
lovette@iftech.com
+-----------------------------------------------------------------------------+
| Interface Technologies, Inc.
| Software Design & Programmer Training
|
| For a collection of free tutorials covering a variety of programming and
| computer-related topics such as Visual C++, MFC, and Windows NT check out
| the ITI On-line Training Center at http://www.iftech.com.
+-----------------------------------------------------------------------------+
Mike Blaszczak -- mikeblas@msn.com
Monday, February 26, 1996
The Unicode version will always be sent. I believe if you check the MFC
sources, you'll find that MFC converts the structure to ANSI if you've done an
ANSI build.
.B ekiM
TCHAR sz[] = _T("Ask me how you can get a job at Microsoft.");
----------
From: owner-mfc-l@netcom.com on behalf of Lance Lovette
Sent: Tuesday, February 20, 1996 11:21
To: mfc-l
Subject: CListCtrl and HDN_BEGINTRACK
[Windows NT 3.51 SP3, MSDEV 4.0]
I wanted to have my list view control handle the HDN_BEGINTRACK message
it's header control sends it. The thing is that the header control doesn't
send the HDN_BEGINTRACK message, it sends the UNICODE version HDN_BEGINTRACKW.
I'm not using UNICODE so HDN_BEGINTRACK is defined as HDN_BEGINTRACKA. Why
is the header control sending the UNICODE version? Why do some notification
messages such as LVN_COLUMNCLICK only have one definition but others such as
HDN_BEGINTRACK or LVN_BEGINLABELEDIT have two definitions? Is Windows 95
going to send the UNICODE version too or do I have to watch for both
HDN_BEGINTRACKA and HDN_BEGINTRACKW?
Thanks,
Lance Lovette
lovette@iftech.com
+-----------------------------------------------------------------------------
+
| Interface Technologies, Inc.
| Software Design & Programmer Training
|
| For a collection of free tutorials covering a variety of programming and
| computer-related topics such as Visual C++, MFC, and Windows NT check out
| the ITI On-line Training Center at http://www.iftech.com.
+-----------------------------------------------------------------------------
+
Jeff Harrison -- harrison%mspo3@mprgate.mpr.ca
Wednesday, March 06, 1996
Sorry, but I don't completely understand your answer :-(
At what point does MFC convert the NMHDR structure to ANSI?
I've overridden, for now, OnNotify() and I too am always getting the Unicode
version, even though I'm doing an ANSI build.
So, why do I have to look for HDN_ENDTRACKW instead of HDN_ENDTRACK?
Thanks,
Jeff
----------
From: owner-mfc-l
To: mfc-l
Subject: RE: CListCtrl and HDN_BEGINTRACK
Date: Monday, February 26, 1996 6:53PM
The Unicode version will always be sent. I believe if you check the MFC
sources, you'll find that MFC converts the structure to ANSI if you've done
an
ANSI build.
.B ekiM
TCHAR sz[] = _T("Ask me how you can get a job at Microsoft.");
----------
From: owner-mfc-l@netcom.com on behalf of Lance Lovette
Sent: Tuesday, February 20, 1996 11:21
To: mfc-l
Subject: CListCtrl and HDN_BEGINTRACK
[Windows NT 3.51 SP3, MSDEV 4.0]
I wanted to have my list view control handle the HDN_BEGINTRACK message
it's header control sends it. The thing is that the header control doesn't
send the HDN_BEGINTRACK message, it sends the UNICODE version
HDN_BEGINTRACKW.
I'm not using UNICODE so HDN_BEGINTRACK is defined as HDN_BEGINTRACKA. Why
is the header control sending the UNICODE version? Why do some notification
messages such as LVN_COLUMNCLICK only have one definition but others such as
HDN_BEGINTRACK or LVN_BEGINLABELEDIT have two definitions? Is Windows 5
going to send the UNICODE version too or do I have to watch for both
HDN_BEGINTRACKA and HDN_BEGINTRACKW?
Thanks,
Lance Lovette
lovette@iftech.com
| Вернуться в корень Архива
|