📄 attentiondlg.cpp
字号:
// AttentionDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ViewDIB.h"
#include "AttentionDlg.h"
#include "ViewDIBDoc.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAttentionDlg dialog
CAttentionDlg::CAttentionDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAttentionDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CAttentionDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CAttentionDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAttentionDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAttentionDlg, CDialog)
//{{AFX_MSG_MAP(CAttentionDlg)
ON_BN_CLICKED(IDC_BUTTON_CANCEL, OnButtonCancel)
ON_BN_CLICKED(IDC_BUTTON_APPLY, OnButtonApply)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAttentionDlg message handlers
void CAttentionDlg::OnButtonCancel()
{
// TODO: Add your control notification handler code here
OnOK();
}
void CAttentionDlg::OnButtonApply()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CMainFrame* pCMainWnd=(CMainFrame*)GetParent();
CViewDIBDoc* pDoc=(CViewDIBDoc*)pCMainWnd->GetActiveDocument();
CMDIChildWnd* CWnd=(CMDIChildWnd*)pCMainWnd->GetActiveFrame();
pDoc=(CViewDIBDoc*)CWnd->GetActiveDocument();
pDoc->m_operFlag=FALSE;
OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -