Dynamic Form View Dialog
Posted on 1998-05-11
I am using the SDI Doc/View architecture (for the purposes of writing an OLE server) with my View class inheriting from CFormView. Does anyone know how I can dynamically decide from multiple dialog resources to use with the initial view that is loaded at runtime? I.e. depending on the hardware, I may want to use a dialog resource that is small, medium or large etc.
I don't really understand the doc/view architecture well enough to know what is going on... I can see that the default constructor created by AppWizard is CMyView::CMyView() : CFormView(CMyView::IDD) and that it will probably have to be changed to something like CMyView::CMyView(int nID) : CFormView(nID), but I'm not sure where in the doc/view creation process that the view is created so I can insert the ID of the dialog resource in the CMyView constructor.
Anyway, thanks in advance for the help