For some ideas, see the "FormSwap" sample code from the "C++ Q&A" column in the December 1998 issue of Microsoft Systems Journal: http://www.microsoft.com/msj/1298/c/c1298.aspx

Also look at the following KB article: "How to Replace a View in a Splitter Window" at http://support.microsoft.com/kb/q149257/

Mike