explorer: Create desktop window hidden and only show it if it wins the race.
ken at codeweavers.com
Tue Mar 26 04:50:34 CDT 2013
On Mar 26, 2013, at 3:20 AM, Dmitry Timoshkov wrote:
> Ken Thomases <ken at 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.
More information about the wine-devel