diff options
Diffstat (limited to 'new/ui_windows.h')
| -rw-r--r-- | new/ui_windows.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/new/ui_windows.h b/new/ui_windows.h index 0fba593..70badb4 100644 --- a/new/ui_windows.h +++ b/new/ui_windows.h @@ -7,6 +7,10 @@ This file assumes that you have included <windows.h> and "ui.h" beforehand. It p #ifndef __UI_UI_WINDOWS_H__ #define __UI_UI_WINDOWS_H__ +// Correctness macros. +#define uiControlHWND(c) ((HWND) uiControlHandle(c)) +#define uiParentHWND(p) ((HWND) uiParentHandle(p)) + // uiWindowsNewControl() creates a new uiControl with the given Windows API control inside. // You will need to provide the preferredSize() method yourself. typedef struct uiWindowsNewControlParams uiWindowsNewControlParams; |
