dlghtml.h

来自「VC下的INTERNET的建立」· C头文件 代码 · 共 39 行

H
39
字号
// DLGHTML.h: interface for the CHtmlDialog class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DLGHTML_H__00C54337_702E_11D2_ABF7_CCFAF0973072__INCLUDED_)
#define AFX_DLGHTML_H__00C54337_702E_11D2_ABF7_CCFAF0973072__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CHtmlDialog  
{
public:
	void SetDlgOptions(LPCTSTR lpszOptions);
	void SetSize(int x, int y);
	LPCVARIANT GetReturnVariant();
	CString GetReturnString();
	void SetParam(LPCTSTR lpszArgs);
	void SetParam(VARIANT* pvarArgs);
	virtual int DoModal();
	CHtmlDialog(LPCTSTR lpszURL, BOOL bRes = FALSE, CWnd* pParent = NULL);
	CHtmlDialog(UINT nResID, CWnd* pParent = NULL);
	CHtmlDialog();
	virtual ~CHtmlDialog();

private:
	inline void ResourceToURL(LPCTSTR lpszURL);
	void CommonConstruct();
protected:
	HWND m_hWndParent;
	CString m_strOptions;
	COleVariant m_varArgs, m_varReturn;
	CString m_strURL;
	HINSTANCE m_hInstMSHTML;
};

#endif // !defined(AFX_DLGHTML_H__00C54337_702E_11D2_ABF7_CCFAF0973072__INCLUDED_)

⌨️ 快捷键说明

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