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 detect that background under child window is changed?

How to detect that background under child window is changed?

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

    How to detect that background under child window is changed? Problem is following: I use owner-drown CStatic ( rectanule) as surround rectangle, but fill the background under it. In CDialog:: OnEraseBackground, I call that CStatic::OnEraseBackground. At first time all controls appears, but next, if I move some window around that CStatic: controls are under backgrounf - do not know that background is filled and not redraw self - so thay are hide under filling. How for child windows to know that background is changed ? I use a collection of controls that placed within filled CStatic rectangle, so I can command Invalidate(0); UpdateWindow(); for each. But this is not helps. How to renew controls when background owner-drawn change (in CStatic::OnEraseBackground ) ? Helps if I command to renew full CDialog, but it happens at too much cost of renewing all controls , not within desired rectangle, but result need as in that case. How to achieve it ? thanks you.

    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