Only update the UI state if the dialog is a top level window. If it is a client window (e.g. a property sheet or embedded dialog) we simply copy the UI state from the parent.

svn path=/trunk/; revision=30644
This commit is contained in:
Thomas Bluemel
2007-11-21 19:53:09 +00:00
parent 7e90f1d184
commit e0aab6ead8
+2 -1
View File
@@ -816,7 +816,8 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
SetFocus( dlgInfo->hwndFocus );
}
SendMessageW( hwnd, WM_CHANGEUISTATE, MAKEWPARAM(UIS_INITIALIZE, 0), 0);
if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD))
SendMessageW( hwnd, WM_CHANGEUISTATE, MAKEWPARAM(UIS_INITIALIZE, 0), 0);
if (template.style & WS_VISIBLE && !(GetWindowLongW( hwnd, GWL_STYLE ) & WS_VISIBLE))
{