uxtheme: also send WM_THEMECHANGED to child windows (resend)

Alexandre Julliard julliard at winehq.org
Tue Jul 5 06:14:48 CDT 2005


Frank Richter <frank.richter at gmail.com> writes:

> +static BOOL CALLBACK UXTHEME_broadcast_msg (HWND hWnd, LPARAM msg)
> +{
> +    if (hWnd == NULL)
> +    {
> +	EnumWindows (UXTHEME_broadcast_msg, msg);
> +    }
> +    else
> +    {
> +	PostMessageW(hWnd, msg, 0, 0);
> +	EnumChildWindows (hWnd, UXTHEME_broadcast_msg, msg);

The recursion is redundant here, EnumChildWindows already enumerates
all children.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list