📄 treelistcomboctrl.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -