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.
I’m looking for a way to intercept the ShowDesktop event and set my window
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re writing a Windows taskbar style dock then simply make sure your window has
WS_EX_TOPMOSTset and ‘Show Desktop’ will leave it alone. Alternatively useSetWindowPosto 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_TOOLWINDOWand removingWS_EX_APPWINDOW.I should of made this clear earlier, apologies.