|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionWinCE for PocketPC 2002 normally only supports SDI MFC applications. With a little trickery you can convert it to an MDI application by swapping views when necessary. You still will not be able to see more than one view at a time due to limited real-estate. You have the choice of just hiding the current view, destroying the current view or hide some and destroy others. New views are created dynamically and there is no limit to the number of views that can be in memory at any one time -- except of course the limit will be the amount of memory in the hardware. The views can be any type supported by the eVC++ 3.0 compiler. There can be as many different view classes as desired, but only one instance of any given view. So you can have one instance of each of these views: Using the codeThese are the steps needed to implement the class in your project.
class CMainFrame : public CSVMainFrame { // class definition here. {
void CSelViewDemoView::OnNextViewButton() { UpdateData(); CMainFrame* pMFrame = (CMainFrame*)GetParentFrame(); pMFrame->OnSelectNextView(RUNTIME_CLASS(CMySecondView), m_selection == 0 ? AIT_HIDE_WINDOW : AIT_DESTROY_WINDOW); }
void CMySecondView::OnPreviousView() { UpdateData(); CMainFrame* pMFrame = (CMainFrame*)GetParentFrame(); pMFrame->OnSelectPrevView(m_selection == 0 ? AIT_HIDE_WINDOW :
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||