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. BitBlt

BitBlt

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

    I am using this call to print a bitmap from one picture box to another: BitBlt(*m_Field.GetDC(), 0, 0, 48, 48, *m_Skin.GetDC(), 0, 0, SRCCOPY); this works but it doesn't get repainted.. for example when I minimize the dialog or drag another window on top of it. anyone know how I can make this auto refresh?

    C 1 Reply Last reply
    0
    • Z zack

      I am using this call to print a bitmap from one picture box to another: BitBlt(*m_Field.GetDC(), 0, 0, 48, 48, *m_Skin.GetDC(), 0, 0, SRCCOPY); this works but it doesn't get repainted.. for example when I minimize the dialog or drag another window on top of it. anyone know how I can make this auto refresh?

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

      You need to do it in OnPaint, which is called whenever a window needs repainting.

      Z 1 Reply Last reply
      0
      • C Christian

        You need to do it in OnPaint, which is called whenever a window needs repainting.

        Z Offline
        Z Offline
        zack
        wrote on last edited by
        #3

        Thanks but this doesn't work for me. I tried reBlting it in OnPaint() but this didn't make it refresh all of the time.. only when going off the screen and back on.. but not when minimizing and restoring and other situations. I'm sure there has to be a proper way to do this. Any examples or suggestions?

        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