mirror of
https://github.com/reactos/reactos.git
synced 2025-06-22 21:00:17 +00:00
[MSPAINT] Remember status bar visibility (#5145)
- Add ShowStatusBar registry setting. - Save ShowStatusBar status and restore the status on startup. CORE-18867
This commit is contained in:
parent
4ce819ca5a
commit
9ff9295a22
4 changed files with 9 additions and 2 deletions
|
@ -239,9 +239,11 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
|||
|
||||
/* creating the status bar */
|
||||
hStatusBar =
|
||||
CreateWindowEx(0, STATUSCLASSNAME, NULL, SBARS_SIZEGRIP | WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hwnd,
|
||||
CreateWindowEx(0, STATUSCLASSNAME, NULL, SBARS_SIZEGRIP | WS_CHILD, 0, 0, 0, 0, hwnd,
|
||||
NULL, hThisInstance, NULL);
|
||||
SendMessage(hStatusBar, SB_SETMINHEIGHT, 21, 0);
|
||||
if (registrySettings.ShowStatusBar)
|
||||
ShowWindow(hStatusBar, SW_SHOWNOACTIVATE);
|
||||
|
||||
RECT scrlClientWindowPos = {0, 0, 0 + 500, 0 + 500};
|
||||
scrlClientWindow.Create(scrollboxWindow.m_hWnd, scrlClientWindowPos, NULL, WS_CHILD | WS_VISIBLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue