-
August 20th, 2004, 05:33 PM
#1
Scroll CDHtmlDialog
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.
-
August 21st, 2004, 10:25 AM
#2
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?
-
September 24th, 2004, 04:08 AM
#3
Re: Scroll CDHtmlDialog
In OnInitDialog, try to add SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER);.
-
July 2nd, 2005, 09:32 PM
#4
Re: Scroll CDHtmlDialog
I can confirm that this solution works. Thank you!
-
October 17th, 2009, 02:16 PM
#5
Re: Scroll CDHtmlDialog
Originally Posted by RoarS
I can confirm that this solution works. Thank you!
No, it doesn't. You have to call it before CDHtmlDialog::OnInitDialog();
Last edited by ahmd; October 17th, 2009 at 02:19 PM.
-
April 29th, 2010, 01:51 AM
#6
Re: Scroll CDHtmlDialog
No, It doesn't have to be before CDHtmlDialog::OnInitDialog();
It works even if you call after this line.
-
April 26th, 2013, 01:09 PM
#7
Re: Scroll CDHtmlDialog
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;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|