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 6186a61..22b0a14 100644 --- a/new/ui_windows.h +++ b/new/ui_windows.h @@ -30,8 +30,12 @@ struct uiWindowsNewControlParams { // baseX and baseY are the base units used to convert between dialog units and pixels. // internalLeading is the internal leading of the control font. void (*preferredSize)(uiControl *c, int baseX, int baseY, LONG internalLeading, intmax_t *width, intmax_t *height); + + // Data you can get with uiWindowsControlData() + void *data; }; uiControl *uiWindowsNewControl(uiWindowsNewControlParams *); +void *uiWindowsControlData(uiControl *); // use these in your preferredSize() implementation with baseX and baseY #define uiDlgUnitToX(dlg, baseX) MulDiv((dlg), baseX, 4) |
