MFCQuery
2006-06-12 12:28:21 UTC
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.
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.