> I don't understand...
> Where are you suggesting that I call CFrameWnd::RepositionBars() from?
>From the same point that you were trying to call GetClientRect() from:
Old code:
void CSomeView::SomeMethod()
{
CRect rctClient ;
GetClientRect(&rctClient);
}
New code:
void CSomeView::SomeMethod()
{
CFrameWnd wndParentFrame ;
CRect rctClient ;
wndParentFrame = GetParentFrame(); // GetParent() will NOT work!
wndParentFrame.RepositionBars(0,(UINT)-1, 0, CWnd::reposQuery,
NULL, &rctClient, TRUE);
// Using AfxGetMainWnd()-> instead of
// wndParentFrame(). should work just as well.
}
Don't be put off by the fact that it is called "Reposition Bars" - by using
reposQuery, it only pretends to re-lay them out, enough to calculate the
client area taken up by the splitter.
--
Jason Teagle
[EMAIL PROTECTED]
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription
changes, and list archive.