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. how to create a sub DC in a DC?

how to create a sub DC in a DC?

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicstutorialquestion
2 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.
  • C Offline
    C Offline
    CaesarCZ
    wrote on last edited by
    #1

    Hi, I got a DC and need to take a rectangular part of it and pass it to a function that fills it with what it deserves. But I need clipping. I would imagine creating a sub-DC of the DC or locking all but the concerned part of the DC and then pass it over. Could you tell me how (if it's possible at all). GDI. Pure WinAPI prefered but will do with MFC sample as well if you post it. Even some hint would be fine. Thanks

    R 1 Reply Last reply
    0
    • C CaesarCZ

      Hi, I got a DC and need to take a rectangular part of it and pass it to a function that fills it with what it deserves. But I need clipping. I would imagine creating a sub-DC of the DC or locking all but the concerned part of the DC and then pass it over. Could you tell me how (if it's possible at all). GDI. Pure WinAPI prefered but will do with MFC sample as well if you post it. Even some hint would be fine. Thanks

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Perhaps CDC::SetBoundsRect() may help? /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

      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