user32: Add test and fix for the error with edit control whose parentis desktop.

Dmitry Timoshkov dmitry at codeweavers.com
Wed Aug 6 09:37:22 CDT 2008


"Ilya Shpigor" <shpigor at 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.

-- 
Dmitry. 




More information about the wine-devel mailing list