From a7293951f75d92a80d4d986ec7dda3fa25ab640b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 04:02:21 -0400 Subject: Wrote up the initial uiButton implementation. It (mostly; just needs text and for that I need to add a uiControlHandle()) works! --- new/ui_windows.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'new/ui_windows.h') 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) -- cgit v1.2.3