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. Repaint control component question

Repaint control component question

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
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.
  • E Offline
    E Offline
    econy
    wrote on last edited by
    #1

    Hi, in one project, there are 2 dialog windows,each dialog take the whole screen area, that is. 800 X 600. I put 2 Static text control in dialog window 1, when I switched back from dialog window 2, I found blinks in static text box, it display corresponding part picture of dialog window 2, then swap to background of dialog window 1. I think this is because static text is a child window in dialog window1. so, it's repainting action is after the repainting of dialog window 1, the parent window. But I don't know how to synchronize the repainting, or let static text be repainted before the parent window. Can somebody help me to solve it? Thanks in advance

    L 1 Reply Last reply
    0
    • E econy

      Hi, in one project, there are 2 dialog windows,each dialog take the whole screen area, that is. 800 X 600. I put 2 Static text control in dialog window 1, when I switched back from dialog window 2, I found blinks in static text box, it display corresponding part picture of dialog window 2, then swap to background of dialog window 1. I think this is because static text is a child window in dialog window1. so, it's repainting action is after the repainting of dialog window 1, the parent window. But I don't know how to synchronize the repainting, or let static text be repainted before the parent window. Can somebody help me to solve it? Thanks in advance

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

      econy wrote:

      I think this is because ...

      More likely there is something not quite right in your code. But without futher information it is impossible to make any 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