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/button_windows.c | |
| 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/button_windows.c')
| -rw-r--r-- | new/button_windows.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/new/button_windows.c b/new/button_windows.c index 149c52b..0bd3021 100644 --- a/new/button_windows.c +++ b/new/button_windows.c @@ -66,7 +66,6 @@ uiControl *uiNewButton(const char *text) struct button *b; uiWindowsNewControlParams p; WCHAR *wtext; - HWND hwnd; p.dwExStyle = 0; p.lpClassName = L"button"; @@ -74,6 +73,7 @@ uiControl *uiNewButton(const char *text) p.lpWindowName = wtext; p.dwStyle = BS_PUSHBUTTON | WS_TABSTOP; p.hInstance = hInstance; + p.useStandardControlFont = TRUE; p.onWM_COMMAND = onWM_COMMAND; p.onWM_NOTIFY = onWM_NOTIFY; p.onWM_DESTROY = onWM_DESTROY; @@ -82,9 +82,6 @@ uiControl *uiNewButton(const char *text) c->preferredSize = preferredSize; - hwnd = (HWND) uiControlHandle(c); - SendMessageW(hwnd, WM_SETFONT, (WPARAM) hMessageFont, (LPARAM) TRUE); - b = uiNew(struct button); b->onClicked = defaultOnClicked; c->data = b; |
