mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user