diff options
Diffstat (limited to 'new/newcontrol_windows.c')
| -rw-r--r-- | new/newcontrol_windows.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/new/newcontrol_windows.c b/new/newcontrol_windows.c index 0122db7..5ca9ad1 100644 --- a/new/newcontrol_windows.c +++ b/new/newcontrol_windows.c @@ -105,16 +105,19 @@ uiControl *uiWindowsNewControl(uiWindowsNewControlParams *p) s->onWM_DESTROY = p->onWM_DESTROY; c = uiNew(uiControl); - c->internal = s; c->destroy = singleDestroy; c->handle = singleHandle; c->setParent = singleSetParent; c->removeParent = singleRemoveParent; c->resize = singleResize; + if (p->useStandardControlFont) + SendMessageW(s->hwnd, WM_SETFONT, (WPARAM) hMessageFont, (LPARAM) TRUE); + if ((*fv_SetWindowSubclass)(s->hwnd, singleSubclassProc, 0, (DWORD_PTR) c) == FALSE) logLastError("error subclassing Windows control in uiWindowsNewControl()"); + c->internal = s; return c; } |
