diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-10 17:53:59 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-10 17:53:59 -0400 |
| commit | a788c1b2127b7c9d4eae1cef175f0f43b29b9711 (patch) | |
| tree | 8e073e1b93a98c4ed247fa1ff1e77da33437e4a6 /new/ui_windows.h | |
| parent | f650237614a21e36d9487840233912518480ac75 (diff) | |
Changed the Windows new control system to automatically assign the standard control font if a flag is set in the creation parameters structure.
Diffstat (limited to 'new/ui_windows.h')
| -rw-r--r-- | new/ui_windows.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
