testdialogbar.cpp
来自「VC程序设计技巧与实例(2)关于窗口和桌面系统、文件和系统操作、消息影射的原代码」· C++ 代码 · 共 50 行
CPP
50 行
// CTestDialogBar.cpp : implementation file
//
#include "stdafx.h"
#include "Test.h"
#include "TestDialogBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTestDialogBar dialog
CTestDialogBar::CTestDialogBar(CWnd* pParent /*=NULL*/)
{
//{{AFX_DATA_INIT(CTestDialogBar)
m_Test = _T("");
//}}AFX_DATA_INIT
}
void CTestDialogBar::DoDataExchange(CDataExchange* pDX)
{
CDialogBar::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTestDialogBar)
DDX_Text(pDX, IDC_TEST_STATIC, m_Test);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTestDialogBar, CDialogBar)
//{{AFX_MSG_MAP(CTestDialogBar)
ON_COMMAND(ID_EDIT_TEST, OnEditTest)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTestDialogBar message handlers
void CTestDialogBar::OnEditTest()
{
// TODO: Add your command handler code here
m_Test = TEXT("收到WM_COMMAND命令消息");
UpdateData(FALSE);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?