CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Posts
    336

    Handle of client area?

    Unlike menus, tool and status bars are seperate controls that live inside the parent window's client area. Therefor if we just leave our WM_SIZE code from before, they are going to overlap with the edit control we added in the previous examples
    http://www.winprog.org/tutorial/app_three.html
    If so why GetClientRect Function returns the upper-left and lower-right visible corners of the client area? It must be start under toolbar. right?

    Is there a way to get handle of clent window(area), so we can move it?

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Handle of client area?

    Is there a way to get handle of clent window(area), so we can move it?
    Which handle do you mean.. and what do you want to move ?

  3. #3
    Join Date
    Sep 2005
    Posts
    336

    Re: Handle of client area?

    I mean client area's handle. But now i think this can't be true.

    But if toolbar lives inside the parent window's client area, so client orgin must be started above visible area. If not, how can client area be moved?

    Also file menu doesn't live in client area, so client area must be moved, right?( I am confused about client area place after adding menu, status bar and toolbar. )

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Handle of client area?

    Quote Originally Posted by sawer View Post
    I mean client area's handle. But now i think this can't be true.

    But if toolbar lives inside the parent window's client area, so client orgin must be started above visible area. If not, how can client area be moved?

    Also file menu doesn't live in client area, so client area must be moved, right?( I am confused about client area place after adding menu, status bar and toolbar. )
    I'm confused. You don't move a client area or get a handle to a client area. You get a handle to a window and move the window.

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