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. CHtmlView - zoom in/out on Ctrl + mouse scroll

CHtmlView - zoom in/out on Ctrl + mouse scroll

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 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.
  • R Offline
    R Offline
    rp_suman
    wrote on last edited by
    #1

    How to implement the zoom in/out on Ctrl + mouse wheel scroll functionalities of IE browser in CHtmlView? Any ideas would be highly appreciable.. Regards

    -- "Programming is an art that fights back!"

    C 1 Reply Last reply
    0
    • R rp_suman

      How to implement the zoom in/out on Ctrl + mouse wheel scroll functionalities of IE browser in CHtmlView? Any ideas would be highly appreciable.. Regards

      -- "Programming is an art that fights back!"

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      CHtmlView exposes all the functions of IWebBrowser2 interfce of WebBrowser activeX control, which it uses to browse the webpages. Its ExecWeb method is meant to control the commands such as SelectAll, Find, Zoom etc of IE.
      CHtmlView::ExecWB
      IWebBrowser2::ExecWB Method
      see OLECMDID_ZOOM member of OLECMDID Enumeration
      hope it helps.

      D 1 Reply Last reply
      0
      • C Cool_Dev

        CHtmlView exposes all the functions of IWebBrowser2 interfce of WebBrowser activeX control, which it uses to browse the webpages. Its ExecWeb method is meant to control the commands such as SelectAll, Find, Zoom etc of IE.
        CHtmlView::ExecWB
        IWebBrowser2::ExecWB Method
        see OLECMDID_ZOOM member of OLECMDID Enumeration
        hope it helps.

        D Offline
        D Offline
        DotNetDominator
        wrote on last edited by
        #3

        use OLECMDID_OPTICAL_ZOOM. define it as 63 if you get compile error. CComVariant vZoom((int)dZoomFactor); m_HTMLCtrl.ExecWB((OLECMDID)OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DODEFAULT, &vZoom, NULL);

        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