forked from Mirrors/openclonk
[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
parent
d33dab4189
commit
b75e3090a4
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue