From a788c1b2127b7c9d4eae1cef175f0f43b29b9711 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 10 Apr 2015 17:53:59 -0400 Subject: Changed the Windows new control system to automatically assign the standard control font if a flag is set in the creation parameters structure. --- new/ui_windows.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'new/ui_windows.h') diff --git a/new/ui_windows.h b/new/ui_windows.h index cfea287..0fba593 100644 --- a/new/ui_windows.h +++ b/new/ui_windows.h @@ -18,6 +18,9 @@ struct uiWindowsNewControlParams { DWORD dwStyle; // WS_CHILD and WS_VISIBLE are automatically applied. HINSTANCE hInstance; + // Set this to non-FALSE to use the standard control font used by other ui controls. + BOOL useStandardControlFont; + // These are called when the control sends a WM_COMMAND or WM_NOTIFY (respectively) to its parent. // ui redirects the message back and calls these functions. // Store the result in *lResult and return any non-FALSE value (such as TRUE) to return the given result; return FALSE to pass the notification up to your window procedure. @@ -42,7 +45,6 @@ struct uiSizingSys { #define uiDlgUnitsToY(dlg, baseY) MulDiv((dlg), baseY, 8) // and use this if you need the text of the window width -// TODO really export? extern intmax_t uiWindowsWindowTextWidth(HWND hwnd); // these functions get and set the window text for such a uiControl -- cgit v1.2.3