[PATCH 7/14] user32: Send the WM_NCCREATE message from user32's
CreateWindow
Robert Shearman
rob at codeweavers.com
Mon Jan 22 04:50:24 CST 2007
Pierre d'Herbemont wrote:
> @@ -1031,18 +1032,6 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CRE
> /* get class or window DC if needed */
> alloc_window_dce( data );
>
> - /* send WM_NCCREATE */
> - TRACE( "hwnd %p cs %d,%d %dx%d\n", hwnd, cs->x, cs->y, cs->cx, cs->cy );
> - if (unicode)
> - ret = SendMessageW( hwnd, WM_NCCREATE, 0, (LPARAM)cs );
> - else
> - ret = SendMessageA( hwnd, WM_NCCREATE, 0, (LPARAM)cs );
> - if (!ret)
> - {
> - WARN("aborted by WM_xxCREATE!\n");
> - return FALSE;
> - }
> -
>
I'm not an expert in this area by any means, but couldn't there now be a
problem where calling GetDCEx on the window during WM_NCCREATE
processing would fail? Maybe there should be a PreCreateWindow function?
--
Rob Shearman
More information about the wine-devel
mailing list