Now that you have your application free of most of the references to the
standard version we can begin our migration process. Now that you have
updated your StdAfx.h
file, in your MainFrm.h
file change your base class to
be CXTPMDIFrameWnd
for MDI applications and CXTPFrameWnd
for SDI applications:
class CMainFrame : public CXTPMDIFrameWnd { ... };
If you have overrode PreTranslateMessage make sure that you call the CXTPMDIFrameWnd base class, for example:
BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class return CXTPMDIFrameWnd::PreTranslateMessage(pMsg); }
Also, if you have overrode OnCmdMsg make sure that you call the CXTPMDIFrameWnd base class, for example:
BOOL CMainFrame::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) { // TODO: Add your specialized code here and/or call the base class return CXTPMDIFrameWnd::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo); }