📄 leftdlg.h
字号:
#if !defined(AFX_LEFTDLG_H__6CC88F3B_E517_11D6_96AA_0000E87DFECA__INCLUDED_)
#define AFX_LEFTDLG_H__6CC88F3B_E517_11D6_96AA_0000E87DFECA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LeftDlg.h : header file
//
#include "resource.h"
#include "explorer\\explplg.h"
/////////////////////////////////////////////////////////////////////////////
// CLeftDlg dialog
#include "tmplate\\tree.h"
struct tree_node
{
HTREEITEM ht;//存放句柄
BOOL is_model;//是不是模块
BYTE addr;//对应的模块地址
};
class CLeftDlg : public CDialog
{
// Construction
public:
void ShowPopupMenu(CPoint pt,UINT MenuID);
BOOL CreateExplorer();
void OnCancel();
void OnOK();
CLeftDlg(CWnd* pParent = NULL); // standard constructor
~CLeftDlg();
CExplorePlug *m_pwndExplorer;
// Dialog Data
//{{AFX_DATA(CLeftDlg)
enum { IDD = IDD_DIALOG_LEFTBAR };
CTreeCtrl m_systree;
CTabCtrl m_tab;
//}}AFX_DATA
CRect m_ChildCtrlRect;//作为CTabCtrl客户区
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLeftDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CImageList m_sysil;//CAN系统节点图标
CImageList m_tabil;//给tab使用的
tree<tree_node> m_can;//CAN系统形成的树
// Generated message map functions
//{{AFX_MSG(CLeftDlg)
afx_msg void OnSize(UINT nType, int cx, int cy);
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclickTreeSystem(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
friend class CMainFrame;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LEFTDLG_H__6CC88F3B_E517_11D6_96AA_0000E87DFECA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -