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. Visual Basic
  4. Refresh without erasing

Refresh without erasing

Scheduled Pinned Locked Moved Visual Basic
graphicsperformancequestion
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.
  • Z Offline
    Z Offline
    Zlosk
    wrote on last edited by
    #1

    I am working on an image editing application, and I was getting a noticeable screen flicker. Is there a way to override the WM_ERASEBACKGROUND message that gets sent during a Refresh? I have a bitmap in memory that I am copying to the screen, so erasing the background during a Refresh doen't do anything besides irritate me. I have come up with a workaround - I created my own screen painting subroutine and changed some of the Refreshes, Invalidates and InvalidateRgns to run my subroutine instead, but I still would like to know if there's some flag somewhere that you could set. To not know is bad. To not wish to know is worse.

    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