summaryrefslogtreecommitdiff
path: root/new/checkbox_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/checkbox_windows.c')
-rw-r--r--new/checkbox_windows.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/new/checkbox_windows.c b/new/checkbox_windows.c
index 4f903ef..28433d2 100644
--- a/new/checkbox_windows.c
+++ b/new/checkbox_windows.c
@@ -61,7 +61,6 @@ uiControl *uiNewCheckbox(const char *text)
struct checkbox *cc;
uiWindowsNewControlParams p;
WCHAR *wtext;
- HWND hwnd;
p.dwExStyle = 0;
p.lpClassName = L"button";
@@ -69,6 +68,7 @@ uiControl *uiNewCheckbox(const char *text)
p.lpWindowName = wtext;
p.dwStyle = BS_CHECKBOX | WS_TABSTOP;
p.hInstance = hInstance;
+ p.useStandardControlFont = TRUE;
p.onWM_COMMAND = onWM_COMMAND;
p.onWM_NOTIFY = onWM_NOTIFY;
p.onWM_DESTROY = onWM_DESTROY;
@@ -77,9 +77,6 @@ uiControl *uiNewCheckbox(const char *text)
c->preferredSize = preferredSize;
- hwnd = (HWND) uiControlHandle(c);
- SendMessageW(hwnd, WM_SETFONT, (WPARAM) hMessageFont, (LPARAM) TRUE);
-
cc = uiNew(struct checkbox);
cc->onToggled = defaultOnToggled;
c->data = cc;