readme.wzd
来自「《Visual C++ MFC编程实例》配套代码,如果大家正在学习此教程」· WZD 代码 · 共 43 行
WZD
43 行
/////////////////////////////////////////////////////////////////////
// Example files.
/////////////////////////////////////////////////////////////////////
WzdEdit.cpp -- an edit control class subclassed to convert arrows keys
WzdEdit.h to tab keys
/////////////////////////////////////////////////////////////////////
// Modify any class.
/////////////////////////////////////////////////////////////////////
// 1) to automatically subclass a control, please see the example in the
// book using the ClassWizard
// 2) to manually subclass a control
HWND hWnd;
GetDlgItem(IDC_WZD_EDIT2, &hWnd);
m_ctrlEdit2.SubclassWindow(hWnd);
// 3) to subclass the edit control of a combo box
CComboBox m_ctrlComboBox; // the combo box
CEdit m_ctrlComboEditBox; // the subclassed edit box
: : :
char className[8];
CWnd* pWnd = m_ctrlComboBox.GetWindow(GW_CHILD);
do {
::GetClassName(pWnd->m_hWnd, className, 8);
if(!stricmp("Edit", className))
{
m_ctrlComboEditBox.SubclassWindow(pWnd->m_hWnd);
}
} while((pWnd = pWnd->GetWindow(GW_HWNDNEXT)));
/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1998 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?