André Hentschel wrote:
> now using SNDMSGW
> ---
> dlls/comctl32/listview.c | 1 -
> dlls/comctl32/tests/listview.c | 8 ++++++++
> include/commctrl.h | 6 ++++++
> 3 files changed, 14 insertions(+), 1 deletions(-)
>
> +#define ListView_SetCheckState(hwndLV, iIndex, bCheck) \
> + { LVITEMA _LVi; _LVi.state = ((bCheck?2:1) << 12); _LVi.stateMask =
> LVIS_STATEIMAGEMASK;\
> + SNDMSGW(hwndLV, LVM_SETITEMSTATE, (WPARAM)(INT)(iIndex), (LPARAM)
> (LPLVITEMA)&_LVi);}
If you using SendMessageW you must use W structures (LVITEMW not LVITEMA).
Also why are you typecasting WP & LP two times?
Vitaliy.