treelistcomboctrl.cpp
来自「一个关于数据结结的」· C++ 代码 · 共 58 行
CPP
58 行
// TreeListComboCtrl.cpp : implementation file
//
#include "stdafx.h"
#include "TreeListDC.h"
#include "TreeListHeaderCtrl.h"
#include "TreeListTipCtrl.h"
#include "TreeListStaticCtrl.h"
#include "TreeListEditCtrl.h"
#include "TreeListComboCtrl.h"
#include "TreeListCtrl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTreeListComboCtrl
CTreeListComboCtrl::CTreeListComboCtrl() :
m_pTreeListCtrl( NULL )
{
}
CTreeListComboCtrl::~CTreeListComboCtrl()
{
}
BEGIN_MESSAGE_MAP(CTreeListComboCtrl, CComboBox)
//{{AFX_MSG_MAP(CTreeListComboCtrl)
ON_WM_KILLFOCUS()
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTreeListComboCtrl message handlers
int CTreeListComboCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CComboBox::OnCreate(lpCreateStruct) == -1)
return -1;
m_pTreeListCtrl = (CTreeListCtrl*)GetParent();
return 0;
}
void CTreeListComboCtrl::OnKillFocus(CWnd* pNewWnd)
{
CComboBox::OnKillFocus(pNewWnd);
m_pTreeListCtrl->SetCtrlFocus( pNewWnd, FALSE );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?