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

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

—SA
 
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 )
VB
HWND ProgmanHwnd =
                 ::FindWindowEx(
                    ::FindWindowEx(
                      ::FindWindow( L"Progman", L"Program Manager"),
                    NULL, L"SHELLDLL_DefView",L""),
                 NULL,L"SysListView32",L"FolderView");
::SetParent(m_hWnd, ProgmanHwnd);
 
Share this answer
 
v2
Comments
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