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. CScrollView.. strange effect

CScrollView.. strange effect

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstutorialquestionannouncement
1 Posts 1 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.
  • Y Offline
    Y Offline
    yang__lee
    wrote on last edited by
    #1

    Hi, I have two views of CScrollView type open with tile effect. I set SetScrollSizes(MM_TEXT, sizeTotal) . In first view I scroll and get the view to the area which should not be visible in second view. then I start drawing my graphic objects. I draw lines rectangle in one view and then call UpdateAllViews on document. To my horror, I saw the graphic elements in other view too of same dimension. relative offsets of these objects are same in both views from their top left corner or say bottom right corner. Update on both view causes both all graphic objects to be drawn all overlapped just like second view. They are not visible in the scrolled area. Are these getting drawn in screen coordinates? Here which dunction need to be used.. screen to client.. how to have correct effect. (mapping mode I am using is MM_TEXT) Leya

    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