SDI.cpp
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:2k
- // SDI.cpp : Defines the class behaviors for the application.
- //
- #include "stdafx.h"
- #include "SDI.h"
- #include "MainFrm.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CSDIApp
- BEGIN_MESSAGE_MAP(CSDIApp, CWinApp)
- //{{AFX_MSG_MAP(CSDIApp)
- ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CSDIApp construction
- CSDIApp::CSDIApp()
- {
- }
- CSDIApp::~CSDIApp()
- {
- }
- /////////////////////////////////////////////////////////////////////////////
- // The one and only CSDIApp object
- CSDIApp theApp;
- /////////////////////////////////////////////////////////////////////////////
- // CSDIApp initialization
- BOOL CSDIApp::InitInstance()
- {
- srand( (unsigned)time( NULL ) );
- InitCommonControls();
- AfxEnableControlContainer();
- // Change the registry key under which our settings are stored.
- // TODO: You should modify this string to be something appropriate
- // such as the name of your company or organization.
- SetRegistryKey( _T("Foss") );
- // To create the main window, this code creates a new frame window
- // object and then sets it as the application's main window object.
- CMainFrame* pFrame = new CMainFrame;
- m_pMainWnd = pFrame;
- // create and load the frame with its resources
- pFrame->LoadFrame(IDR_MAINFRAME,
- WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,
- NULL);
- // // The one and only window has been initialized, so show and update it.
- // pFrame->ShowWindow(SW_SHOW);
- // pFrame->UpdateWindow();
- // window placement persistence
- pFrame->ActivateFrame( SW_SHOW );
- return TRUE;
- }
- int CSDIApp::ExitInstance()
- {
- return CWinApp::ExitInstance();
- }
- /////////////////////////////////////////////////////////////////////////////
- // CSDIApp message handlers
- // App command to run the dialog
- void CSDIApp::OnAppAbout()
- {
- #ifndef __EXT_MFC_NO_PROF_UIS_ABOUT_DIALOG
- VERIFY( ProfUISAbout() );
- #endif // #ifndef __EXT_MFC_NO_PROF_UIS_ABOUT_DIALOG
- }
- /////////////////////////////////////////////////////////////////////////////
- // CSDIApp message handlers