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 deal with Ghost windows in XP System?

How to deal with Ghost windows in XP System?

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingtutorialquestion
4 Posts 4 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.
  • M Offline
    M Offline
    Michael Liu
    wrote on last edited by
    #1

    Anyone knows how to deal with ghost windows in XP? How to get rid of the ghost windows in windows XP system with Platform SDK? Thanks. Windows XP: If a top-level window stops responding to messages for more than several seconds, the system considers the window to be hung and replaces it with a ghost window that has the same Z order, location, size, and visual attributes. This allows the user to move it, resize it, or even close the application. However, these are the only actions available because the application is actually hung. When in the debugger mode, the system does not generate a ghost window. reference from MSDN. :confused:

    M _ 2 Replies Last reply
    0
    • M Michael Liu

      Anyone knows how to deal with ghost windows in XP? How to get rid of the ghost windows in windows XP system with Platform SDK? Thanks. Windows XP: If a top-level window stops responding to messages for more than several seconds, the system considers the window to be hung and replaces it with a ghost window that has the same Z order, location, size, and visual attributes. This allows the user to move it, resize it, or even close the application. However, these are the only actions available because the application is actually hung. When in the debugger mode, the system does not generate a ghost window. reference from MSDN. :confused:

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      How do you mean deal with them? As far as I'm aware it is a system level thing and not a lot can be done to remove the functionality. Michael :-) Logic, my dear Zoe, merely enables one to be wrong with authority. - The Doctor

      1 Reply Last reply
      0
      • M Michael Liu

        Anyone knows how to deal with ghost windows in XP? How to get rid of the ghost windows in windows XP system with Platform SDK? Thanks. Windows XP: If a top-level window stops responding to messages for more than several seconds, the system considers the window to be hung and replaces it with a ghost window that has the same Z order, location, size, and visual attributes. This allows the user to move it, resize it, or even close the application. However, these are the only actions available because the application is actually hung. When in the debugger mode, the system does not generate a ghost window. reference from MSDN. :confused:

        _ Offline
        _ Offline
        _Magnus_
        wrote on last edited by
        #3

        Michael Liu wrote: Anyone knows how to deal with ghost windows in XP? How to get rid of the ghost windows in windows XP system with Platform SDK? Thanks. Yes, dont make programs that hangs! :) /Magnus

        R 1 Reply Last reply
        0
        • _ _Magnus_

          Michael Liu wrote: Anyone knows how to deal with ghost windows in XP? How to get rid of the ghost windows in windows XP system with Platform SDK? Thanks. Yes, dont make programs that hangs! :) /Magnus

          R Offline
          R Offline
          Ramu Pulipati
          wrote on last edited by
          #4

          I never did program for XP specific, still a guess. Are window styles (::GetWindowLong()) same for Ghost(Excutable Mode) & Non-Ghost(Debug Mode) ? If not, make them the similar styles. Use Spy++ to check the styles. Thanks, Ramu

          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