controls.cpp
来自「Visual C++下的界面设计」· C++ 代码 · 共 52 行
CPP
52 行
// Controls.cpp : implementation file
//
#include "stdafx.h"
#include "TaskBar.h"
#include "Controls.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CControlsDlg dialog
CControlsDlg::CControlsDlg(CWnd* pParent /*=NULL*/)
: CAppBarDlg(CControlsDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CControlsDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CControlsDlg::DoDataExchange(CDataExchange* pDX)
{
CAppBarDlg::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CControlsDlg)
DDX_Control(pDX, IDC_START, m_btnStart);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CControlsDlg, CAppBarDlg)
//{{AFX_MSG_MAP(CControlsDlg)
ON_BN_CLICKED(IDC_START, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CControlsDlg message handlers
void CControlsDlg::OnStart()
{
CRect rect;
m_btnStart.GetWindowRect (&rect);
ShowMenu (rect, IDR_EPIC_BUTTON_MENU, -1);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?