Click to See Complete Forum and Search --> : SDI Client Size


James Longstreet
October 15th, 1999, 03:43 PM
I am trying to throw a window into the client area
of an SDI MFc App.
I cannot seem to get the correct size on the window, to get it in there. What is an easy way to store the client area into a crect. i can do it by enuming all the windows but don't really want to do that if I don't ahve to thanks

lesner
October 15th, 1999, 05:15 PM
Hey,
Do you need to know the client size?
do that (at the CView class...):
CRect size;
GetClientRect(size);

size.bottom is the client height
size.right is the client width.

Contact me for more help....
Les.

James Longstreet
October 18th, 1999, 07:50 AM
Well all I decided to do was to Get the view, and
take the window size of the view, and that allowed me to place my window where in the area i wanted it. I don't know if you know but is there a window style to dock a window into an SDI app?

thanks