Browse Source

[PATCH #51] Added scrolling to input window

pre-master-46
Jim Monte 7 years ago
committed by Holger Vogt
parent
commit
0fd5b0fd80
  1. 7
      src/winmain.c

7
src/winmain.c

@ -523,7 +523,7 @@ MainWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
/* Procedure for string window */
/* Procedure for string (input) window */
static LRESULT CALLBACK
StringWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
@ -950,9 +950,10 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCm
}
}
/* Create string window */
/* Create string window for input */
swString = CreateWindowEx(WS_EX_NOPARENTNOTIFY, swClassName, swWindowName,
ES_LEFT | WS_CHILD | WS_BORDER,
ES_LEFT | WS_CHILD | WS_BORDER |
ES_AUTOHSCROLL, /* Allow text to scroll */
20, 20, 300, 100, hwMain, NULL, hInst, NULL);
if (!swString)
goto THE_END;

Loading…
Cancel
Save