Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CDHTMLDialog Scroll ?

CDHTMLDialog Scroll ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studioquestioncsharphtml
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matt Gates
    wrote on last edited by
    #1

    Could someone please let me know how I can get my CDHTMLDialog to scroll. I have tried "scroll = yes" in the Body tag of the html and setting the scrollbars in the dialog editor itself but niether seems to work. I have another app that scrolls just fine but his one will not cooperate. Any ideas. This must be a common newbie question :-O IDE: Visual Studio 2002 Lang: C++. Project: MFC Dialog Based TIA. Matt (Padawan Learner)

    M 1 Reply Last reply
    0
    • M Matt Gates

      Could someone please let me know how I can get my CDHTMLDialog to scroll. I have tried "scroll = yes" in the Body tag of the html and setting the scrollbars in the dialog editor itself but niether seems to work. I have another app that scrolls just fine but his one will not cooperate. Any ideas. This must be a common newbie question :-O IDE: Visual Studio 2002 Lang: C++. Project: MFC Dialog Based TIA. Matt (Padawan Learner)

      M Offline
      M Offline
      Matt Gates
      wrote on last edited by
      #2

      What the heck is this and why did it fix my problem? BOOL CAutoDlg::OnInitDialog() { SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER);//enables scrolling??? CDHtmlDialog::OnInitDialog(); .... } Matt (Padawan Learner)

      A 1 Reply Last reply
      0
      • M Matt Gates

        What the heck is this and why did it fix my problem? BOOL CAutoDlg::OnInitDialog() { SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER);//enables scrolling??? CDHtmlDialog::OnInitDialog(); .... } Matt (Padawan Learner)

        A Offline
        A Offline
        algol
        wrote on last edited by
        #3

        CDHtmlDialog::OnInitDialog() calls SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_SCROLL_NO). Your call clears DOCHOSTUIFLAG_SCROLL_NO flag and enables scroll bars.

        M 1 Reply Last reply
        0
        • A algol

          CDHtmlDialog::OnInitDialog() calls SetHostFlags(DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_SCROLL_NO). Your call clears DOCHOSTUIFLAG_SCROLL_NO flag and enables scroll bars.

          M Offline
          M Offline
          Matt Gates
          wrote on last edited by
          #4

          Thanks! Matt (Padawan Learner)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups