📄 pmarkupdemoview.h
字号:
// PMarkupDemoView.h : interface of the CPMarkupDemoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PMARKUPDEMOVIEW_H__B0094EA6_4A44_471F_9AE6_6D5BEDD10C04__INCLUDED_)
#define AFX_PMARKUPDEMOVIEW_H__B0094EA6_4A44_471F_9AE6_6D5BEDD10C04__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "DividerCtrl.h"
#include "Markup.h"
class CPMarkupDemoView : public CView
{
protected: // create from serialization only
CPMarkupDemoView();
DECLARE_DYNCREATE(CPMarkupDemoView)
CEdit m_edit;
CFont m_font;
CTreeCtrl m_tree;
CImageList m_ilTree;
CDividerCtrl m_divider;
void CalcSize( int cx, int cy );
int m_nAddAttrib;
void GetNthWisePos( HTREEITEM hItem, CUIntArray& aNths );
void SetPos( HTREEITEM hItem, BOOL bChild = FALSE );
CString SetEditTextFromDoc();
HTREEITEM AddElemToTree(HTREEITEM hParentItem);
BOOL ElemHasSubItems();
// Attributes
public:
CPMarkupDemoDoc* GetDocument();
CMarkup* m_pXML;
void GetEditText( CString& csDoc );
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPMarkupDemoView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPMarkupDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPMarkupDemoView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMarkupFind();
afx_msg void OnMarkupAdd();
afx_msg void OnMarkupAddChild();
afx_msg void OnMarkupAddAttrib();
afx_msg void OnEditCopy();
afx_msg void OnEditCut();
afx_msg void OnEditPaste();
afx_msg void OnEditUndo();
afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
//}}AFX_MSG
afx_msg void OnChangeEdit();
afx_msg LRESULT OnAppMessage( WPARAM, LPARAM );
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in PMarkupDemoView.cpp
inline CPMarkupDemoDoc* CPMarkupDemoView::GetDocument()
{ return (CPMarkupDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PMARKUPDEMOVIEW_H__B0094EA6_4A44_471F_9AE6_6D5BEDD10C04__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -