(假设你的html是保存为vc中的资源IDR_CJWEBHTML) 第一步: class CSliderView : public CHtmlView 第二步: 在CSliderView类中的函数OnInitialUpdate() 添加如下代码 void CSliderView::OnInitialUpdate() { //TODO: This code navigates to a popular spot on the web. //Change the code to go where you'd like. this->LoadFromResource(IDR_CJWEBHTML); }上述代码已经通过测试
第一步:
class CSliderView : public CHtmlView
第二步:
在CSliderView类中的函数OnInitialUpdate() 添加如下代码
void CSliderView::OnInitialUpdate()
{
//TODO: This code navigates to a popular spot on the web.
//Change the code to go where you'd like.
this->LoadFromResource(IDR_CJWEBHTML);
}上述代码已经通过测试
还有一个小问题:有些软件在关闭以后,能够自动关闭其打开的帮助文件,不知怎么实现?谢了