HtmlPage.cpp
上传用户:hjw22cn
上传日期:2007-01-11
资源大小:192k
文件大小:1k
- // HtmlPage.cpp : implementation file
- //
- #include "stdafx.h"
- #include "formview.h"
- #include "HtmlPage.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CHtmlPage property page
- IMPLEMENT_DYNCREATE(CHtmlPage, CPageBase)
- CHtmlPage::CHtmlPage() : CPageBase(CHtmlPage::IDD)
- {
- //{{AFX_DATA_INIT(CHtmlPage)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CHtmlPage::~CHtmlPage()
- {
- }
- void CHtmlPage::DoDataExchange(CDataExchange* pDX)
- {
- CPageBase::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CHtmlPage)
- DDX_Control(pDX, IDC_EXPLORER1, m_ctrlHtml);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CHtmlPage, CPageBase)
- //{{AFX_MSG_MAP(CHtmlPage)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CHtmlPage message handlers
- BOOL CHtmlPage::OnInitDialog()
- {
- CPageBase::OnInitDialog();
- AddAnchor(IDC_EXPLORER1, TOP_LEFT, BOTTOM_RIGHT);
- COleVariant noArg;
- m_ctrlHtml.Navigate("http://msdn.microsoft.com/", &noArg, &noArg, &noArg, &noArg);
- //m_ctrlHtml.Navigate("d:\otherprojects\leaguemgr\debug\results_template.h", &noArg, &noArg, &noArg, &noArg);
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }