I have an MDI application with four different document types. I only want the user to have one of each document type open at a time. Does anyone know how to do this?
Currently, in my class derived from CWinApp I call myTemplate->GetFirstDocView() to see if there is a document window open. If there is a Document window open, how do I put it at the top of the z-order. I know that there are functions like ShowWindow(), but I don't know how to get a CWnd* from the CWinApp class.
Currently, in my class derived from CWinApp I call myTemplate->GetFirstDocView() to see if there is a document window open. If there is a Document window open, how do I put it at the top of the z-order. I know that there are functions like ShowWindow(), but I don't know how to get a CWnd* from the CWinApp class.