Solved

Hide the first MDIChildWnd in MDI when created?

Posted on 1998-08-04
1
189 Views
Last Modified: 2013-11-19
How to make the first MDIChildWnd wnd when created? I want to new or open a document with many views but with the corresponding MDIChild and its view is invisible but still with document opened.
the cs.style &=~WS_VISIBLE in precreate just don't work. If  use cmdInfo.m_nShellCommand = CommandLineInfo::FileNothing;
there is no active document.
0
Comment
Question by:cmliu
1 Comment
 
LVL 8

Accepted Solution

by:
trestan earned 50 total points
ID: 1320228
Put GetWindow(NULL) -> ShowWindow(SW_HIDE); in the OnPaint function of ChildFrm class.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now