📄 topicvie.h
字号:
#if !defined(AFX_TOPICVIEW_H__9C5AD3A0_1127_493C_A122_694FBC7A9348__INCLUDED_)
#define AFX_TOPICVIEW_H__9C5AD3A0_1127_493C_A122_694FBC7A9348__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TopicView.h : header file
//
#include "vchelper.h"
/////////////////////////////////////////////////////////////////////////////
// CTopicView view
struct ITEM{
HTREEITEM Item;
int typeID1;
int typeID2;
};
class CVchelperDoc;
class CTopicView : public CView
{
protected:
CTopicView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CTopicView)
// Attributes
public:
_ConnectionPtr m_pCon;
_RecordsetPtr m_pTypeset;
CTreeCtrl m_TreeCtrl;
CCJCaption m_Caption;
CCJFlatButton m_UpButton;
CCJFlatButton m_DownButton;
int m_num;
BOOL m_beflag;
ITEM it[100];
INFRCD infrcd[100];
BOOL m_expand;
// Operations
public:
void ShowData();
void AddTopic();
CVchelperDoc* GetDocument();
BOOL Search(int &x,int &y);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTopicView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CTopicView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CTopicView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnDeleterTopic();
afx_msg void OnUpButton();
afx_msg void OnDownButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TOPICVIEW_H__9C5AD3A0_1127_493C_A122_694FBC7A9348__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -