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. Tree View gets grayed on Minimize-maximize

Tree View gets grayed on Minimize-maximize

Scheduled Pinned Locked Moved C / C++ / MFC
data-structureshelptutorialquestion
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.
  • B Offline
    B Offline
    Binayak
    wrote on last edited by
    #1

    Hi, In my sdi application I have 2 tree views selectable by tabs. If I minimize and maximize the application the tree view looks grayed, only the selected node being visible. Can anyone tell me why and how to fix this?

    J 1 Reply Last reply
    0
    • B Binayak

      Hi, In my sdi application I have 2 tree views selectable by tabs. If I minimize and maximize the application the tree view looks grayed, only the selected node being visible. Can anyone tell me why and how to fix this?

      J Offline
      J Offline
      Joel Lucsy
      wrote on last edited by
      #2

      There can be a range of issues here. Here are some things you can try: One, make sure when one is made visible, the other is made invisible. Two, the tab or the dialog may be drawing it's background on top of the tree controls. Try setting the tab or dialogs properties to clip children. Three, detect the WM_ACTIVATE and do a RedrawWindow on the visible tree. -- Joel Lucsy

      B 1 Reply Last reply
      0
      • J Joel Lucsy

        There can be a range of issues here. Here are some things you can try: One, make sure when one is made visible, the other is made invisible. Two, the tab or the dialog may be drawing it's background on top of the tree controls. Try setting the tab or dialogs properties to clip children. Three, detect the WM_ACTIVATE and do a RedrawWindow on the visible tree. -- Joel Lucsy

        B Offline
        B Offline
        Binayak
        wrote on last edited by
        #3

        Thanks a lot!...Redrawwindow() worked.

        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