RetroZilla/embedding/browser/activex/tests/cbrowse/CBrowseDlg.h
2015-10-20 23:03:22 -04:00

128 lines
3.4 KiB
C++

// CBrowseDlg.h : header file
//
#if !defined(AFX_CBROWSEDLG_H__5121F5E6_5324_11D2_93E1_000000000000__INCLUDED_)
#define AFX_CBROWSEDLG_H__5121F5E6_5324_11D2_93E1_000000000000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "TabMessages.h"
#include "TabTests.h"
#include "TabDOM.h"
/////////////////////////////////////////////////////////////////////////////
// CBrowseDlg dialog
class CBrowseDlg : public CDialog
{
// Construction
public:
CBrowserCtlSiteInstance *m_pControlSite;
CLSID m_clsid;
BOOL m_bUseCustomPopupMenu;
BOOL m_bUseCustomDropTarget;
CMenu m_menu;
BOOL m_bNewWindow;
BOOL m_bEditMode;
BOOL m_bCanGoBack;
BOOL m_bCanGoForward;
CBrowseDlg(CWnd* pParent = NULL); // standard constructor
static CBrowseDlg *m_pBrowseDlg;
HRESULT CreateWebBrowser();
HRESULT DestroyWebBrowser();
HRESULT GetWebBrowser(IWebBrowser **pWebBrowser);
void RunTestSet(TestSet *pTestSet);
TestResult RunTest(Test *pTest);
void UpdateTest(HTREEITEM hItem, TestResult nResult);
void UpdateTestSet(HTREEITEM hItem);
void UpdateURL();
void OutputString(const TCHAR *szMessage, ...);
void ExecOleCommand(const GUID *pguidGroup, DWORD nCmdId);
// Dialog Data
//{{AFX_DATA(CBrowseDlg)
enum { IDD = IDD_CBROWSE_DIALOG };
CButton m_btnStop;
CButton m_btnForward;
CButton m_btnBack;
CComboBox m_cmbURLs;
//}}AFX_DATA
CToolBar m_EditBar;
CPropertySheet m_dlgPropSheet;
CTabMessages m_TabMessages;
CTabTests m_TabTests;
CTabDOM m_TabDOM;
CImageList m_cImageList;
void OnRefreshDOM();
void OnRunTest();
void PopulateTests();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBrowseDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CString m_szTestURL;
CString m_szTestCGI;
DWORD m_dwCookie;
// Generated message map functions
//{{AFX_MSG(CBrowseDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnGo();
afx_msg void OnBackward();
afx_msg void OnForward();
afx_msg void OnClose();
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnFileExit();
afx_msg void OnViewGotoBack();
afx_msg void OnViewGotoForward();
afx_msg void OnViewGotoHome();
afx_msg void OnEditCopy();
afx_msg void OnEditCut();
afx_msg void OnEditPaste();
afx_msg void OnHelpAbout();
afx_msg void OnUpdateViewGotoBack(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewGotoForward(CCmdUI* pCmdUI);
afx_msg void OnEditSelectAll();
afx_msg void OnViewRefresh();
afx_msg void OnViewViewSource();
afx_msg void OnStop();
afx_msg void OnFileSaveAs();
afx_msg void OnFilePrint();
afx_msg void OnDebugVisible();
afx_msg void OnUpdateDebugVisible(CCmdUI* pCmdUI);
afx_msg void OnDebugPostDataTest();
afx_msg void OnReload();
afx_msg void OnViewEditmode();
afx_msg void OnViewOpenInNewWindow();
afx_msg void OnUpdateViewEditmode(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewOpenInNewWindow(CCmdUI* pCmdUI);
afx_msg void OnFilePagesetup();
//}}AFX_MSG
afx_msg void OnEditBold();
afx_msg void OnEditItalic();
afx_msg void OnEditUnderline();
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CBROWSEDLG_H__5121F5E6_5324_11D2_93E1_000000000000__INCLUDED_)