diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-07-25 21:23:27 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2004-07-25 21:23:27 +0000 |
commit | 69e26fe33c7839085a0654fbacdfe371f562fa07 (patch) | |
tree | 6c0fe7d17d568a8f89da32382ba772652247c520 | |
parent | 751ba44030dec430beb8160608af4b030e8c987d (diff) | |
download | newlib-69e26fe33c7839085a0654fbacdfe371f562fa07.zip newlib-69e26fe33c7839085a0654fbacdfe371f562fa07.tar.gz newlib-69e26fe33c7839085a0654fbacdfe371f562fa07.tar.bz2 |
2004-07-26 Hartmut Honisch <hhonisch@users.sourceforge.net>
* include/commctrl.h (TreeView_SetItemState): Define macro.
-rw-r--r-- | winsup/w32api/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/w32api/include/commctrl.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 76aa9b6..0c1b705 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -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 diff --git a/winsup/w32api/include/commctrl.h b/winsup/w32api/include/commctrl.h index 46d40fd..97bffed 100644 --- a/winsup/w32api/include/commctrl.h +++ b/winsup/w32api/include/commctrl.h @@ -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 |