user: Add a test for CreateWindowEx.

This commit is contained in:
Dan Hipschman 2006-08-04 10:08:00 -07:00 committed by Alexandre Julliard
parent 121f9c7e55
commit 5048685970
1 changed files with 2 additions and 0 deletions

View File

@ -137,8 +137,10 @@ static void test_parent_owner(void)
trace( "main window %p main2 %p desktop %p child %p\n", hwndMain, hwndMain2, desktop, child );
/* child without parent, should fail */
SetLastError(0xdeadbeef);
test = CreateWindowExA(0, "ToolWindowClass", "Tool window 1",
WS_CHILD, 0, 0, 100, 100, 0, 0, 0, NULL );
todo_wine ok( GetLastError() == ERROR_TLW_WITH_WSCHILD, "CreateWindowExA should call SetLastError\n" );
ok( !test, "WS_CHILD without parent created\n" );
/* desktop window */