comctl32: add ListView_SetCheckState and ListView_GetCheckState with tests(try3)

Vitaliy Margolen wine-devel at kievinfo.com
Sat May 9 09:56:26 CDT 2009


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.



More information about the wine-devel mailing list