📄 presentdialog.cpp
字号:
// PresentDialog.cpp : 实现文件
//
#include "stdafx.h"
#include "SoccerDoctor.h"
#include "PresentDialog.h"
#include "Displayer.h" // CDisplayer
// CPresentDialog 对话框
IMPLEMENT_DYNAMIC(CPresentDialog, CDialog)
CPresentDialog::CPresentDialog(CDisplayer* pDisplayer, CWnd* pParent /*=NULL*/)
: _pDisplayer(pDisplayer), CDialog(CPresentDialog::IDD, pParent)
{
_PresentType = PRESENT_NONE;
}
CPresentDialog::~CPresentDialog()
{
}
void CPresentDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CPresentDialog, CDialog)
ON_BN_CLICKED(IDC_PRESENTDRIBBLE, OnBnClickedDribble)
ON_BN_CLICKED(IDC_PRESENTSHOT, OnBnClickedShot)
ON_BN_CLICKED(IDC_PRESENTPASS, OnBnClickedPass)
ON_BN_CLICKED(IDC_PRESENTINTERCEPT, OnBnClickedIntercept)
ON_BN_CLICKED(IDC_PRESENTPOS, OnBnClickedPos)
ON_BN_CLICKED(IDC_PRESENTCLEAR, OnBnClickedClear)
END_MESSAGE_MAP()
// CPresentDialog 消息处理程序
BOOL CPresentDialog::PreTranslateMessage(MSG* pMsg)
{
if( _pDisplayer->DeliverMessage(pMsg) )
return TRUE;
return CDialog::PreTranslateMessage(pMsg);
}
void CPresentDialog::OnCancel()
{
_PresentType = PRESENT_NONE;
ShowWindow(SW_HIDE);
// CDialog::OnCancel();
}
void CPresentDialog::OnBnClickedDribble()
{
_PresentType = PRESENT_DRIBBLE;
_pDisplayer->Invalidate(TRUE);
}
void CPresentDialog::OnBnClickedShot()
{
_PresentType = PRESENT_SHOT;
_pDisplayer->Invalidate(TRUE);
}
void CPresentDialog::OnBnClickedPass()
{
_PresentType = PRESENT_PASS;
_pDisplayer->Invalidate(TRUE);
}
void CPresentDialog::OnBnClickedIntercept()
{
_PresentType = PRESENT_INTERCEPT;
_pDisplayer->Invalidate(TRUE);
}
void CPresentDialog::OnBnClickedPos()
{
_PresentType = PRESENT_POS;
_pDisplayer->Invalidate(TRUE);
}
void CPresentDialog::OnBnClickedClear()
{
_PresentType = PRESENT_NONE;
_pDisplayer->Invalidate(TRUE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -