mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SETUP:REACTOS] treelist.h: Fix TreeList_GetStyle/TreeList_SetStyle(Ex) for C language
This commit is contained in:
parent
83d9f6c99b
commit
58cad127dc
1 changed files with 6 additions and 0 deletions
|
@ -421,9 +421,15 @@ typedef TVSORTEX TV_SORTEX;
|
|||
#define TreeList_GetOption(h,i) ((INT )SNDMSG(h,TVM_GETSETOPTION,i,0))
|
||||
#define TreeList_SetColumnOrderArray(h,n,p) ((BOOL )SNDMSG(h,TVM_SETCOLUMNORDERARRAY,n,(LPARAM)(p)))
|
||||
#define TreeList_GetColumnOrderArray(h,n,p) ((BOOL )SNDMSG(h,TVM_GETCOLUMNORDERARRAY,n,(LPARAM)(p)))
|
||||
#ifdef __cplusplus
|
||||
#define TreeList_GetStyle(h) ((DWORD )::GetWindowLong(h,GWL_STYLE))
|
||||
#define TreeList_SetStyle(h,d) ((DWORD )::SetWindowLong(h,GWL_STYLE,d))
|
||||
#define TreeList_SetStyleEx(h,d,m) ((DWORD )::SetWindowLong(h,GWL_STYLE,((d)&(m))|(::GetWindowLong(h,GWL_STYLE)&~(m))))
|
||||
#else
|
||||
#define TreeList_GetStyle(h) ((DWORD )GetWindowLong(h,GWL_STYLE))
|
||||
#define TreeList_SetStyle(h,d) ((DWORD )SetWindowLong(h,GWL_STYLE,d))
|
||||
#define TreeList_SetStyleEx(h,d,m) ((DWORD )SetWindowLong(h,GWL_STYLE,((d)&(m))|(GetWindowLong(h,GWL_STYLE)&~(m))))
|
||||
#endif
|
||||
#define TreeList_GetItemRect(h,i,s,p,c) (*(HTREEITEM*)p =(i),(BOOL)SNDMSG(h,TVM_GETITEMRECT,(WPARAM)((c)|(TVIR_COLTOSUB(s))),(LPARAM)(RECT*)(p)))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue