mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
new helper struct ClientRect
svn path=/trunk/; revision=5620
This commit is contained in:
@@ -77,8 +77,7 @@ LRESULT ShellBrowserChild::Init(LPCREATESTRUCT pcs)
|
||||
|
||||
_hWndFrame = GetParent(pcs->hwndParent);
|
||||
|
||||
RECT rect;
|
||||
GetClientRect(_hwnd, &rect);
|
||||
ClientRect rect(_hwnd);
|
||||
|
||||
SHFILEINFO sfi;
|
||||
|
||||
@@ -393,8 +392,7 @@ void ShellBrowserChild::OnTreeItemSelected(int idCtrl, LPNMTREEVIEW pnmtv)
|
||||
pLastShellView->DestroyViewWindow();
|
||||
pLastShellView->Release();
|
||||
|
||||
RECT clnt;
|
||||
GetClientRect(_hwnd, &clnt);
|
||||
ClientRect clnt(_hwnd);
|
||||
resize_children(clnt.right, clnt.bottom);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user