【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了NotifyEvent.cpp提供大家参考,希望对大家有所帮助!
// NotifyEvent.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "NotifyEvent.h"
#include "NotifyEventDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNotifyEventApp
BEGIN_MESSAGE_MAP(CNotifyEventApp, CWinApp)
//{{AFX_MSG_MAP(CNotifyEventApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNotifyEventApp construction
CNotifyEventApp::CNotifyEventApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CNotifyEventApp object
CNotifyEventApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CNotifyEventApp initialization
BOOL CNotifyEventApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic()
#endif
CoInitialize(NULL);
CNotifyEventDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
int CNotifyEventApp::ExitInstance()
{
CoUninitialize();
return CWinApp::ExitInstance();
}