📄 indexeditorview.h
字号:
// IndexEditorView.h : interface of the CIndexEditorView class
//
#pragma once
#include "GridCtrl.h"
class CIndexEditorView : public CFormView
{
protected: // create from serialization only
CIndexEditorView();
DECLARE_DYNCREATE(CIndexEditorView)
public:
enum{ IDD = IDD_INDEXEDITOR_FORM };
// Attributes
public:
CIndexEditorDoc* GetDocument() const;
CGridCtrl m_gridIndex;
IGHIndexPtr m_cpCurrentIndex;
// Operations
public:
// Overrides
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
// Implementation
public:
virtual ~CIndexEditorView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
void InitGrid();
void ShowContextMenu(CPoint point);
BOOL IsExist(const CString& strName,int iRow=0);
void GetSafeName(CString& strName);
void UpdateGridRowHead(int iStart = 1 );
public:
//void ShowIndex(int offset);
void ShowIndex(IGHIndex *pGHIndex);
void ShowIndex(const CString& IndexName);
// Generated message map functions
protected:
afx_msg void OnFilePrintPreview();
DECLARE_MESSAGE_MAP()
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnGridEndEdit(NMHDR *pNotifyStruct,LRESULT* pResult);
afx_msg void OnGridRClick(NMHDR *pNotifyStruct,LRESULT* pResult);
protected:
virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/);
public:
afx_msg void OnGridAddRow();
afx_msg void OnGridDelRow();
afx_msg void OnGridRefresh();
afx_msg void OnUpdateGridDelRow(CCmdUI *pCmdUI);
afx_msg void OnGridDeleteAll();
afx_msg void OnUpdateGridDeleteAll(CCmdUI *pCmdUI);
// afx_msg void OnGridInsert();
// afx_msg void OnUpdateGridInsert(CCmdUI *pCmdUI);
afx_msg void OnCancelEditSrvr();
};
#ifndef _DEBUG // debug version in IndexEditorView.cpp
inline CIndexEditorDoc* CIndexEditorView::GetDocument() const
{ return reinterpret_cast<CIndexEditorDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -