I have a CDHtmlDialog dialog with a htm page in it. The page is taller than the dialog. How can I scroll the dialog to see the entire htm page? I've tried different ways but I can't seem to be able to get an working vertical scroll.
Printable View
I have a CDHtmlDialog dialog with a htm page in it. The page is taller than the dialog. How can I scroll the dialog to see the entire htm page? I've tried different ways but I can't seem to be able to get an working vertical scroll.
I have a CDHtmlDialog dialog with a htm page in it. The page is taller than the dialog. How can I scroll the dialog to see the entire htm page? I've tried different ways but I can't seem to be able to get an working vertical scroll. How can this be done?
In OnInitDialog, try to add SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER);.
I can confirm that this solution works. Thank you!
No, It doesn't have to be before CDHtmlDialog::OnInitDialog();
It works even if you call after this line. :wave:
You would be better off using the following code in the OnInitDialog--since Microsoft may change the default flags in the future.
m_dwHostFlags &= ~DOCHOSTUIFLAG_SCROLL_NO;
or
SetHostFlags(m_dwHostFlags & ~DOCHOSTUIFLAG_SCROLL_NO);
By default, m_dwHostFlags = DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_SCROLL_NO;