Look up this document in the MSDN or on Microsoft's web site; "Relationships Among MFC Objects". I keep this one tacked to the wall next to my computer. The function you want is CWnd::GetParentFrame(). Remember the view is a child of the frame. Good luck and happy hacking... Jonathan Craig
Unless your window is a dialog, you can't. Well, at least not easily (it would require reading the dialog resource template and creating all the windows and buttons based on that in your own code).