mirror of
https://github.com/reactos/reactos.git
synced 2025-06-14 02:28:31 +00:00
[MSPAINT] Save ToolBox visibility (#5167)
According to my registry analysis, the target value is HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\General-Bar3:Visible. - Add ShowToolBox registry setting. CORE-18867
This commit is contained in:
parent
5ed7db5acb
commit
1c7c0fa7a7
4 changed files with 19 additions and 2 deletions
|
@ -193,7 +193,9 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
|||
haccel = LoadAccelerators(hThisInstance, MAKEINTRESOURCE(800));
|
||||
|
||||
RECT toolBoxContainerPos = {2, 2, 2 + 52, 2 + 350};
|
||||
toolBoxContainer.Create(hwnd, toolBoxContainerPos, NULL, WS_CHILD | WS_VISIBLE);
|
||||
toolBoxContainer.Create(hwnd, toolBoxContainerPos, NULL, WS_CHILD);
|
||||
if (registrySettings.ShowToolBox)
|
||||
toolBoxContainer.ShowWindow(SW_SHOWNOACTIVATE);
|
||||
/* creating the tool settings child window */
|
||||
RECT toolSettingsWindowPos = {5, 208, 5 + 42, 208 + 140};
|
||||
toolSettingsWindow.Create(toolBoxContainer.m_hWnd, toolSettingsWindowPos, NULL, WS_CHILD | WS_VISIBLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue