[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: explorer: Create desktop window hidden and only show it if it wins the race.
From:       Ken Thomases <ken () codeweavers ! com>
Date:       2013-03-26 9:50:34
Message-ID: 0A73CB18-CDE2-4EA2-8795-FA788961ACBA () codeweavers ! com
[Download RAW message or body]

On Mar 26, 2013, at 3:20 AM, Dmitry Timoshkov wrote:

> Ken Thomases <ken@codeweavers.com> wrote:
> 
> > +        ShowWindow( hwnd, SW_SHOW );
> > SetWindowLongPtrW( hwnd, GWLP_WNDPROC, (LONG_PTR)desktop_wnd_proc );
> > SendMessageW( hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIconW( 0, \
> > MAKEINTRESOURCEW(OIC_WINLOGO))); if (name) set_desktop_window_title( hwnd, name \
> > );
> 
> You can postpone calling ShowWindow() after setting window text and icon,
> since they are drawn as part of a non-client area, and changing them
> forces another set of redraws.

Good idea.  Thanks.

-Ken


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic