Author: weiden
Date: Wed Nov 21 22:53:09 2007
New Revision: 30644
URL:
http://svn.reactos.org/svn/reactos?rev=30644&view=rev
Log:
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.
Modified:
trunk/reactos/dll/win32/user32/windows/dialog.c
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/dialog.c (original)
+++ trunk/reactos/dll/win32/user32/windows/dialog.c Wed Nov 21 22:53:09 2007
@@ -816,7 +816,8 @@
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))
{