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/entry_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/entry_windows.c')
| -rw-r--r-- | new/entry_windows.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; |
