CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: SDI Client Size

  1. #1
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    SDI Client Size

    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




  2. #2

    Re: SDI Client Size

    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.




  3. #3
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Re: SDI Client Size

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured