mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[USER32]
- Revert r47238 as requested by Giannis: "this commit breaks any program that wants to subclass mdi client windows" svn path=/trunk/; revision=48629
This commit is contained in:
parent
b0a5ac396e
commit
cb6ae2faab
1 changed files with 0 additions and 30 deletions
|
@ -342,18 +342,6 @@ CreateWindowExA(DWORD dwExStyle,
|
||||||
POINT mPos[2];
|
POINT mPos[2];
|
||||||
UINT id = 0;
|
UINT id = 0;
|
||||||
HWND top_child;
|
HWND top_child;
|
||||||
PWND WndParent;
|
|
||||||
PCLS pcls;
|
|
||||||
|
|
||||||
if(!(WndParent = ValidateHwnd(hWndParent)) ||
|
|
||||||
!(pcls = DesktopPtrToUser(WndParent->pcls)))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (pcls->fnid != FNID_MDICLIENT)
|
|
||||||
{
|
|
||||||
ERR("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
||||||
* MDICREATESTRUCT members have the originally passed values.
|
* MDICREATESTRUCT members have the originally passed values.
|
||||||
|
@ -466,24 +454,6 @@ CreateWindowExW(DWORD dwExStyle,
|
||||||
POINT mPos[2];
|
POINT mPos[2];
|
||||||
UINT id = 0;
|
UINT id = 0;
|
||||||
HWND top_child;
|
HWND top_child;
|
||||||
PWND WndParent;
|
|
||||||
PCLS pcls;
|
|
||||||
|
|
||||||
WndParent = ValidateHwnd(hWndParent);
|
|
||||||
|
|
||||||
if(!WndParent)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
pcls = DesktopPtrToUser(WndParent->pcls);
|
|
||||||
|
|
||||||
if(!pcls)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (pcls->fnid != FNID_MDICLIENT)
|
|
||||||
{
|
|
||||||
ERR("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
||||||
* MDICREATESTRUCT members have the originally passed values.
|
* MDICREATESTRUCT members have the originally passed values.
|
||||||
|
|
Loading…
Reference in a new issue