News:

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

Main Menu

NMHDR in 64-bit

Started by sinsi, August 03, 2024, 07:24:50 PM

Previous topic - Next topic

sinsi

Working on a ListView header click routine that wasn't being triggered, tracked it down to the NMHDR structure.

I was using NMHDR structure (richedit.h), the first hit on Google
typedef struct _nmhdr {
  HWND hwndFrom;
  UINT idFrom;
  UINT code;
} NMHDR;

After a couple of hours searching, I was steered to the correct structure definition at NMHDR structure (winuser.h)
typedef struct tagNMHDR {
  HWND     hwndFrom;
  UINT_PTR idFrom;
  UINT     code;
} NMHDR;
Thanks, Microsoft :rolleyes:

MASM32 uses the old definition (UINT) but MASM64 uses the new one (UINT_PTR).
Too bad I don't use the MASM64 SDK  :tongue: