News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

LVM_GETITEMTEXT working in XP but not windows 7

Started by jimg, February 11, 2013, 04:09:57 PM

Previous topic - Next topic

japheth


I also checked my old COMView source - written 10 years ago - which uses LVS_OWNERDATA. There's no problem with the LVM_GETITEMTEXT message. AFAICS, to support certain features of the standard listview, one may have to use ListView_SetCallbackMask(); but it's not necessary for LVM_GETITEM(TEXT).

So the MS documentation is probably wrong - surely not the first time.

jimg

http://msdn.microsoft.com/en-us/library/windows/desktop/aa384203%28v=vs.85%29.aspx
Quote64-bit versions of Windows use 32-bit handles for interoperability. When sharing a handle between 32-bit and 64-bit applications, only the lower 32 bits are significant, so it is safe to truncate the handle (when passing it from 64-bit to 32-bit) or sign-extend the handle (when passing it from 32-bit to 64-bit).