mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 12:11:48 +00:00
msi: In dialogs show titlebar buttons.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46080 Signed-off-by: Fabian Maurer <dark.shadow4@web.de> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b78de971f6
commit
84e6b33191
|
@ -3858,6 +3858,10 @@ static LRESULT WINAPI MSIDialog_WndProc( HWND hwnd, UINT msg,
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
return msi_dialog_oncommand( dialog, wParam, (HWND)lParam );
|
return msi_dialog_oncommand( dialog, wParam, (HWND)lParam );
|
||||||
|
|
||||||
|
case WM_CLOSE:
|
||||||
|
/* Simulate escape press */
|
||||||
|
return msi_dialog_oncommand(dialog, 2, NULL);
|
||||||
|
|
||||||
case WM_ACTIVATE:
|
case WM_ACTIVATE:
|
||||||
if( LOWORD(wParam) == WA_INACTIVE )
|
if( LOWORD(wParam) == WA_INACTIVE )
|
||||||
dialog->hWndFocus = GetFocus();
|
dialog->hWndFocus = GetFocus();
|
||||||
|
@ -3903,10 +3907,13 @@ static UINT dialog_run_message_loop( msi_dialog *dialog )
|
||||||
return SendMessageW( hMsiHiddenWindow, WM_MSI_DIALOG_CREATE, 0, (LPARAM) dialog );
|
return SendMessageW( hMsiHiddenWindow, WM_MSI_DIALOG_CREATE, 0, (LPARAM) dialog );
|
||||||
|
|
||||||
/* create the dialog window, don't show it yet */
|
/* create the dialog window, don't show it yet */
|
||||||
style = WS_OVERLAPPED;
|
style = WS_OVERLAPPED | WS_SYSMENU;
|
||||||
if( dialog->attributes & msidbDialogAttributesVisible )
|
if( dialog->attributes & msidbDialogAttributesVisible )
|
||||||
style |= WS_VISIBLE;
|
style |= WS_VISIBLE;
|
||||||
|
|
||||||
|
if (dialog->parent == NULL && (dialog->attributes & msidbDialogAttributesMinimize))
|
||||||
|
style |= WS_MINIMIZEBOX;
|
||||||
|
|
||||||
hwnd = CreateWindowW( szMsiDialogClass, dialog->name, style,
|
hwnd = CreateWindowW( szMsiDialogClass, dialog->name, style,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
NULL, NULL, NULL, dialog );
|
NULL, NULL, NULL, dialog );
|
||||||
|
|
Loading…
Reference in a new issue