[win32][devmode] Use correct ShowWindow flags for editing dialogs

SW_* flags are not bitfields, but an enumeration of values.
The old code only worked by chance, since SW_SHOWNORMAL|SW_SHOWNA is actually
9, which in turn is the value of SW_RESTORE. Since it seems non-activated
normal window size is the expected behavior, the correct value to use is
SW_SHOWNOACTIVATE.
stable-5.2
Nicolas Hake 2009-10-10 11:17:58 +02:00
parent d33dab4189
commit b75e3090a4
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ bool C4PropertyDlg::Open()
// Show window
RestoreWindowPosition(hDialog, "Property", Config.GetSubkeyPath("Console"));
SetWindowPos(hDialog,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
ShowWindow(hDialog,SW_SHOWNORMAL | SW_SHOWNA);
ShowWindow(hDialog,SW_SHOWNOACTIVATE);
#else // _WIN32
#ifdef WITH_DEVELOPER_MODE
if(vbox == NULL)

View File

@ -286,7 +286,7 @@ bool C4ToolsDlg::Open()
// Show window
RestoreWindowPosition(hDialog, "Property", Config.GetSubkeyPath("Console"));
SetWindowPos(hDialog,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
ShowWindow(hDialog,SW_SHOWNORMAL | SW_SHOWNA);
ShowWindow(hDialog,SW_SHOWNOACTIVATE);
#else
#ifdef WITH_DEVELOPER_MODE
if(hbox == NULL)