new helper struct ClientRect

svn path=/trunk/; revision=5620
This commit is contained in:
Martin Fuchs
2003-08-17 18:31:45 +00:00
parent 5b6d43ab50
commit 17412a6d95
11 changed files with 57 additions and 96 deletions
@@ -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);
}