xmlviewerdlg.h

来自「Visual_C++[1].NET_Bible1 Visual_C++宝典书中」· C头文件 代码 · 共 49 行

H
49
字号
// XMLViewerDlg.h : header file
//

#pragma once
#include "afxcmn.h"


// CXMLViewerDlg dialog
class CXMLViewerDlg : public CDialog
{
// Construction
public:
	CXMLViewerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_XMLVIEWER_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

protected:
  MSXML::IXMLDOMDocumentPtr m_plDomDocument;
  MSXML::IXMLDOMElementPtr m_pDocRoot;
public:
    afx_msg void OnBnClickedOpenDoc();
    CString m_strDocName;
    CTreeCtrl m_treeDocContents;
protected:
    void DisplayChildren(HTREEITEM hParent, MSXML::IXMLDOMNodePtr pParent);
    HTREEITEM DisplayChild(HTREEITEM hParent, MSXML::IXMLDOMNodePtr pChild);
public:
    afx_msg void OnBnClickedExpandAll();
    afx_msg void OnBnClickedCollapseAll();
    void ExpandBranch(HTREEITEM hItem, BOOL bExpand = TRUE);
    afx_msg void OnBnClickedButton3();
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?