📄 webctl.h
字号:
#if !defined(AFX_WEBCTL_H__00849AB7_B85B_48B6_ADE6_37AC5AD4BF4F__INCLUDED_)
#define AFX_WEBCTL_H__00849AB7_B85B_48B6_ADE6_37AC5AD4BF4F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <atlbase.h>
#include <Mshtml.h>
#include <winuser.h>
#include <comdef.h>
// WebCtl.h : Declaration of the CWebCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CWebCtrl : See WebCtl.cpp for implementation.
class CWebCtrl : public COleControl
{
DECLARE_DYNCREATE(CWebCtrl)
// Constructor
public:
CWebCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWebCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
~CWebCtrl();
DECLARE_OLECREATE_EX(CWebCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CWebCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CWebCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CWebCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CWebCtrl)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CWebCtrl)
afx_msg void Read();
afx_msg void Write();
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CWebCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
char * GetValueFromXml(char *nodeName);
int modify(const char *nodeName, char *nodeValue);
int CreateXMLFile(char *xml_file_name);
SHDocVw::IShellWindowsPtr m_spSHWinds;
CButton m_btn;
enum {
//{{AFX_DISP_ID(CWebCtrl)
dispidRead = 1L,
dispidWrite = 2L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WEBCTL_H__00849AB7_B85B_48B6_ADE6_37AC5AD4BF4F__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -