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

📄 dialog4.cpp

📁 教工请假情况登记
💻 CPP
字号:
// Dialog4.cpp : implementation file
//

#include "stdafx.h"
#include "办公室负责登入教工请假情况.h"
#include "办公室负责登入教工请假情况Dlg.h"
#include "Dialog4.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialog4 dialog


CDialog4::CDialog4(CWnd* pParent /*=NULL*/)
	: CDialog(CDialog4::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialog4)
	m_Day3 = _T("");
	m_Month3 = _T("");
	m_Number3 = _T("");
	m_Reason3 = _T("");
	m_Year3 = _T("");
	//}}AFX_DATA_INIT
}


void CDialog4::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialog4)
	DDX_CBString(pDX, IDC_DAY3, m_Day3);
	DDX_CBString(pDX, IDC_MONTH3, m_Month3);
	DDX_Text(pDX, IDC_NUMBER3, m_Number3);
	DDX_Text(pDX, IDC_REASON3, m_Reason3);
	DDX_CBString(pDX, IDC_YEAR3, m_Year3);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialog4, CDialog)
	//{{AFX_MSG_MAP(CDialog4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialog4 message handlers

BOOL CDialog4::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if( pMsg->message == WM_MOUSEMOVE )
	{
		POINT pt = pMsg->pt;	
		ScreenToClient( &pt );
		m_toolTip.ShowToolTip( (CPoint)pt );
	}	
	return CDialog::PreTranslateMessage(pMsg);
}

BOOL CDialog4::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_toolTip.Create( this );
	CStringArray straInfo;

	straInfo.RemoveAll();
	straInfo.Add( "Enter your number" );
	m_toolTip.AddControlInfo( IDC_NUMBER3, straInfo, RGB(255,255,0) );

	straInfo.RemoveAll();
	straInfo.Add( "Year in the lists:" );
	m_toolTip.AddControlInfo( IDC_YEAR3, straInfo, RGB(192,0,192) );

	straInfo.RemoveAll();
	straInfo.Add( "Month in the lists:" );
	m_toolTip.AddControlInfo( IDC_MONTH3, straInfo, RGB(0,192,192) );

	straInfo.RemoveAll();
	straInfo.Add( "Day in the lists:" );
	m_toolTip.AddControlInfo( IDC_DAY3, straInfo, RGB(255,0,255) );

   	straInfo.RemoveAll();
	straInfo.Add( "What's wrong?" );
	m_toolTip.AddControlInfo( IDC_REASON3, straInfo, RGB(0,255,255));
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDialog4::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

void CDialog4::OnCancel() 
{
	// TODO: Add extra cleanup here
	CMyDlg dlg;
	dlg.DoModal();
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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