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. COM
  4. Active X Control - Redrawing

Active X Control - Redrawing

Scheduled Pinned Locked Moved COM
c++cssdockerquestion
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.
  • J Offline
    J Offline
    Jared Allen
    wrote on last edited by
    #1

    I'm having some trouble with screen flickering when the browser window (or active X test control container) is scrolled. It is really quiet bad, Is ther any way to get better redrawing? with less flickering? I've tried some double buffering but it doesn't seem to work. Especially with the CDC that the OnDraw function gives me. It is an MFC base Active X control. Any ideas, would be great thanks, JAred.

    L 1 Reply Last reply
    0
    • J Jared Allen

      I'm having some trouble with screen flickering when the browser window (or active X test control container) is scrolled. It is really quiet bad, Is ther any way to get better redrawing? with less flickering? I've tried some double buffering but it doesn't seem to work. Especially with the CDC that the OnDraw function gives me. It is an MFC base Active X control. Any ideas, would be great thanks, JAred.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      It is probably EraseBackground that causing this excessive flicker. Try to intercept WM_ERASEBKGND and return 1. Worked for me.

      L 1 Reply Last reply
      0
      • L Lost User

        It is probably EraseBackground that causing this excessive flicker. Try to intercept WM_ERASEBKGND and return 1. Worked for me.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        If you BitBlt a bitmap to the background through the WM_ERASEBKGND and the bitmap is bigger than the dialog it will flicker. Make sure the bitmap is exactly the size of your rect or smaller.

        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