📄 webreplaydlg.h
字号:
//
// $Id: WebReplayDlg.h 27 2005-06-16 09:27:37Z wpc0756\Emmanuel $
//
// Copyright 2005 Emmanuel KARTMANN (emmanuel@kartmann.org)
//
#pragma once
#include "explorer1.h"
#include "afxwin.h"
class CWebReplayDlgAutoProxy;
// CWebReplayDlg dialog
class CWebReplayDlg : public CDialog
{
DECLARE_DYNAMIC(CWebReplayDlg);
friend class CWebReplayDlgAutoProxy;
// Construction
public:
CWebReplayDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CWebReplayDlg();
// Dialog Data
enum { IDD = IDD_REPLAYWEB_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
CWebReplayDlgAutoProxy* m_pAutoProxy;
HICON m_hIcon;
BOOL CanExit();
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
virtual void OnOK();
virtual void OnCancel();
DECLARE_MESSAGE_MAP()
CExplorer1 m_objExplorer;
_bstr_t m_bstrStatusBarText;
public:
DECLARE_EVENTSINK_MAP()
void DocumentCompleteExplorer1(LPDISPATCH pDisp, VARIANT* URL);
void StatusTextChangeExplorer1(LPCTSTR Text);
afx_msg void OnTimer(UINT nIDEvent);
CEdit m_objScenarioFileName;
CEdit m_objStatusBar;
void ReplayScenario();
void ResetScenario();
void EndScenario();
CComQIPtr<IHTMLElement, &IID_IHTMLElement> GetHTMLElement(const OLECHAR *BSTRElementName, const OLECHAR *BSTRElementId);
HRESULT SimulateHTMLElementClick(const OLECHAR *BSTRElementName, const OLECHAR *BSTRElementId);
HRESULT SimulateTextInput(const OLECHAR *BSTRHtmlControlName, const OLECHAR *BSTRHtmlControlId, const OLECHAR *BSTRText);
HRESULT SimulateFireEvent(CComQIPtr<IHTMLElement, &IID_IHTMLElement> pHTMLElement, const OLECHAR *BSTREventName);
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedButtonReplay();
CButton m_objReplayButton;
afx_msg void OnBnClickedCancel();
CEdit m_objReplayStatus;
unsigned long m_intTimeoutMilliseconds;
long m_intMaxNumberOfTimeouts;
MSXML2::IXMLDOMDocumentPtr m_objXMLDoc;
CString m_strConfigFile;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -