News:

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

Main Menu

HDM_SETITEM blues ??

Started by K_F, January 27, 2014, 04:54:32 AM

Previous topic - Next topic

K_F

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 ??


'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

bsdsource

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.

K_F

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:
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

dedndave

no problem
the fee is still $50  :biggrin:

K_F

'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'