mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:13:06 +00:00
- check if window was created successfully...
svn path=/trunk/; revision=27069
This commit is contained in:
parent
6a1c6e4790
commit
869f31838e
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ User32CreateWindowEx(DWORD dwExStyle,
|
||||||
DbgPrint("[window] NtUserCreateWindowEx() == %d\n", Handle);
|
DbgPrint("[window] NtUserCreateWindowEx() == %d\n", Handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((dwStyle & WS_VISIBLE) && (dwExStyle & WS_EX_MDICHILD))
|
if ((dwStyle & WS_VISIBLE) && (dwExStyle & WS_EX_MDICHILD) && Handle != (HWND)0)
|
||||||
{
|
{
|
||||||
SendMessageW(hWndParent, WM_MDIREFRESHMENU, 0, 0);
|
SendMessageW(hWndParent, WM_MDIREFRESHMENU, 0, 0);
|
||||||
SetWindowPos(Handle, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW |
|
SetWindowPos(Handle, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue