locked
What API does 'Window + D' key use? RRS feed

  • Question

  • I think 'Window + M' shortcut use SW_MINIMIZE.

    However, I guess 'Window + D' hides all windows on desktop.

    The client size of minimized window is 0 (GetClientRect used).

    The client with 'Window + D' is not 0 size.

    SW_HIDE hides a window and taskbar icon. But, 'Window + D' hides only a window, taskbar icon remains...

    What API does 'Window + D' key use?



    • Edited by ello29 Wednesday, June 24, 2020 10:55 AM
    Wednesday, June 24, 2020 10:46 AM

Answers

All replies

    • Marked as answer by ello29 Thursday, June 25, 2020 7:43 AM
    Wednesday, June 24, 2020 11:10 AM
  • Thanks.

    I want to apply ToggleDesktop to only my process which calls Shell.ToggleDesktop().

    Is it possible?

    I want to hide my process window without hiding taskbar icon.



    • Edited by ello29 Thursday, June 25, 2020 3:39 AM
    Thursday, June 25, 2020 3:34 AM
  • ToggleDesktop just minimizes all windows

    If I check with a Timer GetClientRect-IsRectEmpty, it  is empty after I typed [Win] + [D] 

    (on Windows 10)
    • Edited by Castorix31 Thursday, June 25, 2020 5:09 AM
    Thursday, June 25, 2020 5:04 AM