I wanted to add the code here, so you can see what I was trying to do.
Code:
// A minimal MFC program.
#include <afxwin.h>
// Derive essential classes.
// This is the main window class.
class CMainWin : public CFrameWnd
{
public:
CMainWin();
DECLARE_MESSAGE_MAP()
};
// Construct a window.
CMainWin::CMainWin()
{
Create(NULL, "An MFC Application Skeleton");
}
// This is the application class.
class CApp : public CWinApp
{
public:
BOOL InitInstance();
};
// Initialize the application.
BOOL CApp::InitInstance()
{
m_pMainWnd = new CMainWin;
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
// This is the application's message map.
BEGIN_MESSAGE_MAP(CMainWin, CFrameWnd)
END_MESSAGE_MAP()
CApp App; // instantiate the application