[PATCH 2/5] explorerframe/nstc: Create the treeview on initialization. (try 2)

Alexandre Julliard julliard at winehq.org
Tue Aug 3 04:36:36 CDT 2010


David Hedberg <david.hedberg at gmail.com> writes:

> +static LRESULT resize_namespacetree(NSTC2Impl *This)
> +{
> +    RECT rc;
> +    TRACE("%p\n", This);
> +
> +    GetClientRect(This->hwnd_main, &rc);
> +    SetWindowPos(This->hwnd_tv, HWND_TOP, rc.left, rc.top,
> +                 rc.right, rc.bottom, SWP_SHOWWINDOW);

Again, that's not the correct usage of SetWindowPos. You don't want to
show or activate it. What you probably want is MoveWindow.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list