"Ilya Shpigor" shpigor@etersoft.ru wrote:
+static void test_edit_parent_desktop_1(void) +{
- HWND hwEdit;
- HDC hdc;
- hwEdit = CreateWindowEx( 0, "EDIT", NULL, WS_CHILD | WS_OVERLAPPEDWINDOW |
WS_VISIBLE, 10, 10, 300, 300, GetDesktopWindow(), NULL, hinst, NULL);
Formatting of the line above looks pretty much strange. Please try to keep the line length under 80 columns, and use consistent spacing.
- hdc = GetDC( hwEdit );
- SendMessage( hwEdit, WM_PAINT, (WPARAM)GetDC( hwEdit ), 0 );
- ok( GetPixel( hdc, PIXEL_X, PIXEL_Y ) != COLOR_DEF_EDIT, "Get incorrect parent device context handle: brush color
= %04x\n", GetPixel( hdc, PIXEL_X, PIXEL_Y ) );
Same here.
- DestroyWindow( hwEdit );
+}
In general this test proves nothing.