// prog1.cpp -- A skeleton MFC program
// Implementation of the classes derived from the MFC library
#include <afxwin.h> // include MFC class definitions & windows.h
#include "prog1.h" // and our app's class declarations
// Our CMainWin class definition
CMainWin::CMainWin() // CMainWin constructor--creates the window
{
Create (NULL, "An MFC Application Skeleton");
}
// CMainWin's message map
BEGIN_MESSAGE_MAP (CMainWin, CFrameWnd) // here no msgs processed
END_MESSAGE_MAP();
// Our CApp class function definitions
// Initialize the application
BOOL CApp::InitInstance()
{
m_pMainWnd = new CMainWin; // invoke CMainWin constructor--creates window
m_pMainWnd->ShowWindow(m_nCmdShow); // have window show itself
m_pMainWnd->UpdateWindow(); // have window update its client area
return TRUE;
}
// Instantiate the application
CApp App; // create a CApp object and begin execution