Document/View Architecture - having 1doc and 2 Views
-
i just want to know if this is possible to have another View Class in MDI and make some Child window that uses this View Class. for example a list classes in a MDI: CChildFrame CMainFrame CMyDoc CMyView -> base class are CView CMy2View -> i added this View Class that its base is not the same as CMyView base class and i want to have a Child Window that use this view class. is this possible or any suggestion? thanks in advance.:)
-
i just want to know if this is possible to have another View Class in MDI and make some Child window that uses this View Class. for example a list classes in a MDI: CChildFrame CMainFrame CMyDoc CMyView -> base class are CView CMy2View -> i added this View Class that its base is not the same as CMyView base class and i want to have a Child Window that use this view class. is this possible or any suggestion? thanks in advance.:)
i findout smthing, i have to set a Base class to both CMDIChildWnd and my own base class. and it seems that i have to Set BEGIN_MESSAGE_MAP(CMy2View, CMDIChildWnd) is it true that the only way that a Child Window obey a View class is to make it with this line : CMDIChildWnd::Create(...) So to having a ChildWindow i have to set base to CMDIChildWnd and then i will lose my own base class, i mean i cant use OnPaint() Coz i have to set Message map to CMDIChildWnd. :confused: Any Suggestion ?