Re: comctl32: add ListView_SetCheckState and ListView_GetCheckState with tests(try3)
9 May
2009
9 May
'09
2:56 p.m.
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.
6064
Age (days ago)
6064
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen