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/entry_windows.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'new/entry_windows.c') diff --git a/new/entry_windows.c b/new/entry_windows.c index 41614c5..2297c28 100644 --- a/new/entry_windows.c +++ b/new/entry_windows.c @@ -36,14 +36,13 @@ uiControl *uiNewEntry(void) uiControl *c; struct entry *e; uiWindowsNewControlParams p; - HWND hwnd; p.dwExStyle = WS_EX_CLIENTEDGE; p.lpClassName = L"edit"; p.lpWindowName = L""; - // TODO ES_NOHIDESEL? - p.dwStyle = ES_AUTOHSCROLL | ES_LEFT | WS_TABSTOP; + p.dwStyle = ES_AUTOHSCROLL | ES_LEFT | ES_NOHIDESEL | WS_TABSTOP; p.hInstance = hInstance; + p.useStandardControlFont = TRUE; p.onWM_COMMAND = onWM_COMMAND; p.onWM_NOTIFY = onWM_NOTIFY; p.onWM_DESTROY = onWM_DESTROY; @@ -51,9 +50,6 @@ uiControl *uiNewEntry(void) c->preferredSize = preferredSize; - hwnd = (HWND) uiControlHandle(c); - SendMessageW(hwnd, WM_SETFONT, (WPARAM) hMessageFont, (LPARAM) TRUE); - e = uiNew(struct entry); c->data = e; -- cgit v1.2.3