RepositionBars with the CWnd::reposQuery flag returns the remaining
rect.
--
Scott McPhillips [VC++ MVP]
--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com
"Gytis Jakutonis" <jaku...@mail.lt> wrote in message
news:eFxzzJN2...@TK2MSFTNGP09.phx.gbl...
I've tested this by creating new mdi child and streching it to fill the
entire client area in the normal state - getwindowrect() for the child frame
should be equal to repositionbars() result, but - reposition bars gives rect
which is 4 pts (on my windows) larger in height than child window rect.
So currently I have a litle 'hack':
RepositionBars(0, UINT_MAX, UINT_MAX, reposQuery, &clientRect);
clientRect.bottom -= 4;
Any ideas about those 4 pts? My mdi frame has menu, statusbar and rebar(top)
with several tollbars in it. thanks in advance.
"Scott McPhillips" <scot...@mvps.org> wrote in message
news:3E54CEC4...@mvps.org...