📄 geotreecrt.cpp
字号:
// GeoTreeCrt.cpp : implementation file
//
#include "stdafx.h"
#include "MyInsaneBT.h"
#include "GeoTreeCrt.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGeoTreeCrt
CGeoTreeCrt::CGeoTreeCrt()
{
}
CGeoTreeCrt::~CGeoTreeCrt()
{
}
BEGIN_MESSAGE_MAP(CGeoTreeCrt, CTreeCtrl)
//{{AFX_MSG_MAP(CGeoTreeCrt)
ON_WM_LBUTTONDOWN()
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGeoTreeCrt message handlers
void CGeoTreeCrt::OnLButtonDown( UINT nHitTest, CPoint point)
{
CTreeCtrl::OnLButtonDown(nHitTest,point);
HTREEITEM Handle = GetSelectedItem();
CString text;
text = GetItemText(Handle);
CMainFrame* pFrm = (CMainFrame*)AfxGetApp()->m_pMainWnd;
//WM_SWITCH_PAND
if(text == _T("详细信息"))
{
pFrm->m_Logworkspace.PostMessage(WM_SWITCH_PAND,(WPARAM)1,-1);
}
else if(text == _T("peer信息"))
{
pFrm->m_Logworkspace.PostMessage(WM_SWITCH_PAND,(WPARAM)2,-1);
}
else if(text == _T("下载日志"))
{
pFrm->m_Logworkspace.PostMessage(WM_SWITCH_PAND,(WPARAM)3,-1);
}
else
{
pFrm->m_Logworkspace.PostMessage(WM_SWITCH_PAND,(WPARAM)4,-1);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -