CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Location
    India
    Posts
    17

    Question Making MDI Child at run time

    Hi,

    I have a problem. I want to make a form an mdi child of another form during run time. I did it by using SetParent api, but it is not working as expected. Eventhough it became mdi child, when I maximize it is not maximizing as mdi childs do. Still I can see two window title bars. Usually when we maximize an mdi child, the window title bar of the child becomes invisible. Is it possible to make a form an mdi child during run time and they work exactly the same way as if we set during design time?

    Thanks

    Kishore

  2. #2
    Join Date
    Dec 2002
    Location
    London, UK
    Posts
    1,569
    Not directly (that I know of). You'll have to put in extra code to hide the caption bar of the "child" form. Also code to handle any menus that you may want to combine when mximizing the forms.
    Mike

  3. #3
    Join Date
    Apr 2003
    Location
    India
    Posts
    17
    Dear Pinky,

    Thank you for your replay. But I am searching for that extra code. If you get any info, please let me know.

    Regards

    Kishore

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