Hide the first MDIChildWnd in MDI when created?

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.
cmliuAsked:
Who is Participating?
 
trestanCommented:
Put GetWindow(NULL) -> ShowWindow(SW_HIDE); in the OnPaint function of ChildFrm class.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.