Load HTML page on dialog in VC
- From: "MFCQuery" <mfcquery@xxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 16:42:50 +0530
Hi,
As we can create a view class on dialog which occupied the complete dialog,
the same way we can create a htmlview class on dialog. In this html view
class we can load a html page. I have no problem to do that.
What is the problem?
The html page doesn't completely shown on dialog. Some space in each edge of
dialog is left. I want that html page should be completely covered the
dialog.
I am doing like this
class myhtml:public CHtmlView{
....
};
In OnCreate function of dialog class, i create a html class object .
In dialogdlg.h
myhtml *obj;
in dialogdlg.cpp
OnCreate()
{
CRect rect;
GetClientRect(&rect);
obj=new myhtml;
obj.Create(NULL,NULL,WS_CHILD|WS_VISIBLE,rect,this,1);
}
and in myhtml class i load a html page by using
LoadFromResource(IDR_HTML1);.
HTML page doesn't cover dialog box completely while size of htmlpage and
dialog are same.
Can somone tell how htmlpage will cover whole dialog and there should be no
vertical scroll bar.
.
- Prev by Date: Re: CreateProcess
- Next by Date: Re: Accessing Web Services from VC++ 7.1 (NOT MANAGED)
- Previous by thread: Re: Problem in converting the application in vs2003 to vs2005
- Next by thread: Problem on Windows security
- Index(es):
Relevant Pages
|