Discussion:
Load HTML page on dialog in VC6
(too old to reply)
MFCQuery
2006-06-12 12:28:21 UTC
Permalink
Hi,
In dialog box application, i create a html class on dialog and load a html
page.
When program execute the image doesn't completely covered dialog. On edges
of dialog some space is left. and a vertical scroll bar(initially in disable
state) is added to dialog.
I am doing like this
class myhtml:public CHtmlView{
...
};
In OnCreate function of dialog class, i create a html class object .
In dialog.h
myhtml *obj;
in dialog.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.
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.
MFCQuery
2006-06-13 08:40:38 UTC
Permalink
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.
Post by MFCQuery
Hi,
In dialog box application, i create a html class on dialog and load a html
page.
When program execute the image doesn't completely covered dialog. On edges
of dialog some space is left. and a vertical scroll bar(initially in
disable state) is added to dialog.
I am doing like this
class myhtml:public CHtmlView{
...
};
In OnCreate function of dialog class, i create a html class object .
In dialog.h
myhtml *obj;
in dialog.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.
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.
Loading...