Fix SetMenu after CreateWindow for invisible window

Dmitry Timoshkov dmitry at baikal.ru
Fri Sep 19 09:11:30 CDT 2003


"Michal Janusz Miroslaw" <M.Miroslaw at elka.pw.edu.pl> wrote:

> +/**********************************************************************
> + *         SetMenu    (USER32.@)
> + */
> +BOOL WINAPI SetMenu( HWND hWnd, HMENU hMenu )
> +{
> +    TRACE("(%p, %p);\n", hWnd, hMenu);
> +
> +    if (GetWindowLongA( hWnd, GWL_STYLE ) & WS_CHILD) return FALSE;

A better fix is to remove the above check altogether.

-- 
Dmitry.





More information about the wine-devel mailing list