Why are some items greyed out in Spy++'s Windows view?

前端 未结 1 806
半阙折子戏
半阙折子戏 2021-01-04 19:10

To modify a window of another program, I need to find a specific SysTreeView32 in it using EnumChildWindows API call.

When I inspect the wi

相关标签:
1条回答
  • 2021-01-04 19:24

    Those are just non-visible windows - ie HWNDs that don't have the WS_VISIBLE style bit set. They are often worker windows - windows that just exist to process various messages in the background - or in some cases are UI that's yet to become visible. For example, a window that lets you hide or show a toolbar may just hide it by making it invisible rather than destroying it and recreating it later.

    In your specific case, the WorkerW could be a placeholder for some other piece of UI that's not needed right now, while the msctl_statusbar32 looks like it's a hidden status bar.

    0 讨论(0)
提交回复
热议问题