I'm looking for a way to intercept the ShowDesktop event and set my window at front. Is there a way doing it without using API hooks? Thanks, Omer.
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
- What uses more memory in c++? An 2 ints or 2 funct
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
If you're writing a Windows taskbar style dock then simply make sure your window has
WS_EX_TOPMOST
set and 'Show Desktop' will leave it alone. Alternatively useSetWindowPos
to make it the top-most window after it has been created, e.g.:Update: You need to use the Windows Application Bar API to make a 'dock' style app. See here for more details.
Application bars also need to be removed from the top-level list displayed when you Alt+Tab etc, which can be done by adding the
WS_EX_TOOLWINDOW
and removingWS_EX_APPWINDOW
.I should of made this clear earlier, apologies.