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

📄 dlgmsghistory.cpp

📁 基于domino系统邮件数据库编写的邮件助手程序
💻 CPP
字号:
// DlgMsgHistory.cpp : implementation file
//

#include "stdafx.h"
#include "DominoMinder.h"
#include "DlgMsgHistory.h"
#include "DominoMessage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgMsgHistory dialog


CDlgMsgHistory::CDlgMsgHistory(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgMsgHistory::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgMsgHistory)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDlgMsgHistory::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgMsgHistory)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgMsgHistory, CDialog)
	//{{AFX_MSG_MAP(CDlgMsgHistory)
	ON_WM_SHOWWINDOW()
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgMsgHistory message handlers

BOOL CDlgMsgHistory::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	//任务栏显示
	ModifyStyleEx(0, WS_EX_APPWINDOW);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDlgMsgHistory::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	//取历史消息并显示
	CDominoMessage* pDomMsg = CDominoMessage::GetInstance();
	SetDlgItemText( IDC_EDIT_MSG_HISTORY, pDomMsg->GetMsgHistory() );

	CDialog::OnShowWindow(bShow, nStatus);
}

void CDlgMsgHistory::OnSize(UINT nType, int cx, int cy) 
{
	CDialog::OnSize(nType, cx, cy);
	
	// TODO: Add your message handler code here
	CWnd* pEdit = this->GetDlgItem( IDC_EDIT_MSG_HISTORY );
	if ( pEdit != NULL ) {
		//CRect oRect;
		//pEdit->GetWindowRect( oRect );
		pEdit->SetWindowPos( NULL, 0, 0, cx-24, cy-24, SWP_NOZORDER|SWP_NOMOVE );
	}
}

⌨️ 快捷键说明

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