projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[COMCTL32] -Reduce diff with user32 and move all data of the button in a single struct.
[reactos.git]
/
reactos
/
dll
/
win32
/
comctl32
/
comctl32.h
diff --git
a/reactos/dll/win32/comctl32/comctl32.h
b/reactos/dll/win32/comctl32/comctl32.h
index
3fbcbc7
..
c19cfde
100644
(file)
--- a/
reactos/dll/win32/comctl32/comctl32.h
+++ b/
reactos/dll/win32/comctl32/comctl32.h
@@
-76,6
+76,18
@@
typedef struct
extern COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN;
extern COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN;
+typedef struct _BUTTON_DATA {
+ LONG state;
+ HFONT font;
+ LONG_PTR image;
+ DWORD ui_state;
+} BUTTON_DATA, *PBUTTON_DATA;
+
+static inline PBUTTON_DATA _GetButtonData(HWND hwnd)
+{
+ return (PBUTTON_DATA)GetWindowLongPtrW( hwnd, 0 );
+}
+
/* Internal function */
HWND COMCTL32_CreateToolTip (HWND) DECLSPEC_HIDDEN;
VOID COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN;
/* Internal function */
HWND COMCTL32_CreateToolTip (HWND) DECLSPEC_HIDDEN;
VOID COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN;