2004-07-26 Hartmut Honisch <hhonisch@users.sourceforge.net>

* include/commctrl.h (TreeView_SetItemState): Define macro.
This commit is contained in:
Danny Smith 2004-07-25 21:23:27 +00:00
parent 751ba44030
commit 69e26fe33c
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-07-26 Hartmut Honisch <hhonisch@users.sourceforge.net>
* include/commctrl.h (TreeView_SetItemState): Define macro.
2004-07-24 Danny Smith <dannysmith@users.sourceforge.net>
* include/wingdi.h (CMYK): Correct macro. Group CMYK/RGB

View File

@ -3212,6 +3212,14 @@ WINBOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
#endif
#if (_WIN32_IE >= 0x0500)
#define TreeView_GetItemState(w,i,m) (UINT)SNDMSG((w),TVM_GETITEMSTATE,(WPARAM)(i),(LPARAM)(m))
#define TreeView_SetItemState(w,i,d,m) \
{ \
TVITEM _tvi;\
_tvi.mask=TVIF_STATE;\
_tvi.stateMask=m;\
_tvi.state=d;\
SNDMSG((w),TVM_SETITEM,0,(LPARAM)(TVITEM*)&_tvi);\
}
#endif
#ifdef UNICODE