-
Toggling an MDI Child to NonChild
Howdy,
I have a form that most of the time will be a child in an MDI form. However,
in a few circumstances we'd like to reuse that form in a nonMdi way. There's
two ways I can go with this:
Method 1: Set the MDIChild property to True at design time.
Then use SetParent to reset the parent hwnd to 0.
Problem: The form is freed OK, but the tab key no longer works to navigate
between controls. (???)
Method 2:Set the MDIChild property to False at design time.
Then use SetParent to reset the parent hwnd to the MDIParent's hwnd.
Problem: The form does not appear maximized, even though we set the window
state to maximized. Further, it does not show up in the MDI's collection of
forms.
I can go either way with this, so if anyone has a suggestion to solve either
problem, please let me know.
Thanks,
Robert
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|