Guides & Tutorials (beta)

Upgrading Toolkit Standard to Toolkit Pro - Getting Started

by Kirk Stowell Visual C++ Created on 11/16/2007  |  Updated on 07/31/2024 0/5 ( 0 votes )

Changing Your Main Frame Inheritance

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);
}

User Comments

No comments yet, sign in to comment.

Secure Transactions

Online transactions are secure and protected.


Ssl seal 1
This site is protected by Trustwave's Trusted Commerce program
CompliAssure Secured

Money Back Guarantee

If you are not 100% happy with your purchase within 30 days, you can return it for any reason. Your satisfaction is our priority!


Satisfication Guaranteed

Contact sales@codejock.com for more details.