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

Thread: MDI Application Client Window

  1. #1
    Join Date
    Aug 2012
    Posts
    10

    MDI Application Client Window

    I am developing a MDI application that will contain a RibbonBar and a Properties Pane window. The MDI documents are not tabbed. I am finding that when I try to move the client window around, it gets clipped by the RibbonBar and the Properties Pane window (shown in image). I know the client window cannot go outside the client area, but can the client window be on top of the ribbon bar and the properties pane window?

    I am using VStudio 2008.

    Name:  MDI Clipped.jpg
Views: 690
Size:  14.1 KB

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,735

    Re: MDI Application Client Window

    No.
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: MDI Application Client Window

    or in more detail.

    No.
    Because the MDI document window is not a child of the frame
    it's a child of the MDI child window (manager window), which is a parent of the frame.

  4. #4
    Join Date
    Aug 2012
    Posts
    10

    Re: MDI Application Client Window

    it's a child of the MDI child window (manager window), which is a parent of the frame
    I don't understand the part where the MDI child window is the parent of the frame window. Can you explain that?

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,735

    Re: MDI Application Client Window

    Quote Originally Posted by drax22 View Post
    Quote Originally Posted by OReubens View Post
    No.
    Because the MDI document window is not a child of the frame
    it's a child of the MDI child window (manager window), which is a parent of the frame.
    I don't understand the part where the MDI child window is the parent of the frame window. Can you explain that?
    There was I guess a typo.
    OReubens seemed to mean:
    "MDI document window is not a child of the frame
    it's a child of the MDI client window (manager window), which is a parent of any child frame"

    See also:
    https://msdn.microsoft.com/en-us/lib...e_client_child
    Victor Nijegorodov

  6. #6
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,207

    Re: MDI Application Client Window

    This picture shows who's the child of which parent in a classic MDI application.

    Name:  MDI Windows.jpg
Views: 1556
Size:  75.4 KB
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: http://codexpert.ro/blog/author/ovidiu-cucu/

  7. #7
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,207

    Re: MDI Application Client Window

    The MDI main frame may have in its clent area, aside with MDI Client window (of pre-defined window class "MDIClient"), other docked windows: a status bar, a ribbon bar, toolbars etc. The framework resizes the MDI Client window each time is necessary, in order to occupy the remained space. See the below picture in that I've surrounded the MDI Client with a red line.

    Name:  Clipped MDI Child Windows.jpg
Views: 589
Size:  49.0 KB

    Now, going back to the OP question: the answer is, as already answered: No.

    [ later edit ]

    To see the features and the behavior of child windows, have a look at this FAQ: What is a child window?.
    Last edited by ovidiucucu; April 18th, 2015 at 10:56 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: http://codexpert.ro/blog/author/ovidiu-cucu/

  8. #8
    Join Date
    Aug 2012
    Posts
    10

    Re: MDI Application Client Window

    Thanks to Victor for clearing up the typo. Ovidiu, much appreciate your illustrations. Makes it a lot easier to understand.

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)