Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want prevent my application from minimizing when "Show desktop" button cliked. Is there anyone who can help me?

This application would defeat the purpose of "Show desktop". I don't think it's possible. Why?

Share this answer
I could find the solution. Put this code at onCretae and you will defeat the purpose of "Show desktop".( as SAKryukov said )
HWND ProgmanHwnd =
                      ::FindWindow( L"Progman", L"Program Manager"),
                    NULL, L"SHELLDLL_DefView",L""),
::SetParent(m_hWnd, ProgmanHwnd);
Share this answer
softwaremonkey 6-Nov-18 1:31am    
Worked for me - Good solution!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900