Author: jimtabor
Date: Tue Apr 15 13:51:30 2008
New Revision: 32983
URL:
http://svn.reactos.org/svn/reactos?rev=32983&view=rev
Log:
Add notify events when a window is created. If'
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Tue Apr 15 13:51:30
2008
@@ -2049,7 +2049,6 @@
DPRINT("IntCreateWindowEx(): about to send CREATE message.\n");
Result = co_IntSendMessage(Window->hSelf, WM_CREATE, 0, (LPARAM) &Cs);
-
if (Result == (LRESULT)-1)
{
/* FIXME: Cleanup. */
@@ -2057,7 +2056,16 @@
IntUnlinkWindow(Window);
RETURN((HWND)0);
}
-
+#if 0
+ Result = co_EVENT_CallEvents(EVENT_OBJECT_CREATE, Window->hSelf, OBJID_WINDOW, 0);
+
+ if (Result == (LRESULT)-1)
+ {
+ /* FIXME: Cleanup. */
+ DPRINT1("IntCreateWindowEx(): event CREATE hook failed. No cleanup
performed!\n");
+ RETURN((HWND)0);
+ }
+#endif
/* Send move and size messages. */
if (!(Window->Flags & WINDOWOBJECT_NEED_SIZE))
{