The MASM Forum

General => The Campus => Topic started by: K_F on January 27, 2014, 04:54:32 AM

Title: HDM_SETITEM blues ??
Post by: K_F on January 27, 2014, 04:54:32 AM
Sometimes I find that online MDSN all but useless...

I create listview(report mode) columns (LVM_INSERTCOLUMN) and obtain the header handle (LVM_GETHEADER).
From here all header messages work no problem except for (HDM_SETITEM). I also tried (LVM_SETCOLUMN) with no pleasure.
I'm only using the HDI_TEXT flag on the structures to try set the text of the header.

The thing is that this is an exact copy of my Listview sample code... that works, incorporated into a bigger module.
I've combed the modules for any unwanted changes but nothing untoward.

Question... are there any 'quirks' with setting Header Items that I've missed ??


Title: Re: HDM_SETITEM blues ??
Post by: bsdsource on January 27, 2014, 07:21:28 AM
I think it would be somewhat difficult to assist without showing the piece of the code where you send the HDM_SETITEM message. But your question was about quirks.... I can't answer that.

double check that the following 2 HDITEM structure members are properly set:

pszText

cchTextMax

I'm sure your just overlooking something minor.
Title: Re: HDM_SETITEM blues ??
Post by: K_F on January 28, 2014, 01:45:35 AM
Quote from: azdps on January 27, 2014, 07:21:28 AM
I'm sure your just overlooking something minor.
Ja.. you're right....
I'm such a pr.ck... tearing my hair out..again!! :icon_eek:

Had 'Return TRUE' at the end of my WM_NOTIFY message handler.

Sorry to bother you people
:icon_mrgreen:
Title: Re: HDM_SETITEM blues ??
Post by: dedndave on January 28, 2014, 03:34:13 PM
no problem
the fee is still $50  :biggrin:
Title: Re: HDM_SETITEM blues ??
Post by: K_F on January 28, 2014, 05:45:51 PM
Cheque's in the email..
:biggrin: