⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mailmonitorapp.cpp

📁 一个邮件监控程序
💻 CPP
字号:
/*

  MailMonitorApp.cpp


  Clase que define la aplicaci髇.

  Autor: Sergio Scarnatto

*/

#include "stdafx.h"
#include "MailMonitor.h"
#include "MailMonitorDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#define BGCOLOR 0xFFCC00
#define FGCOLOR 0x000000

/////////////////////////////////////////////////////////////////////////////
// CMailMonitorApp

BEGIN_MESSAGE_MAP(CMailMonitorApp, CWinApp)
	//{{AFX_MSG_MAP(CMailMonitorApp)
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMailMonitorApp construction

CMailMonitorApp::CMailMonitorApp()
{
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMailMonitorApp object

CMailMonitorApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CMailMonitorApp initialization

BOOL CMailMonitorApp::InitInstance()
{
	if (!AfxSocketInit())
	{
		AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
		return FALSE;
	}

  SetDialogBkColor(BGCOLOR,FGCOLOR);

	// Standard initialization

#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif
 
	CMailMonitorDlg dlg;
	m_pMainWnd = &dlg;
  dlg.m_bIniciarMinimizado = false;
  if (__argc ==2)
    if (strlen(__argv[1])==2)
      if (__argv[1][0]=='-' && __argv[1][1]=='m')
        dlg.m_bIniciarMinimizado = true;

	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
	}
	else if (nResponse == IDCANCEL)
	{
	}

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -