0
votes

I'm developing an application for Windows using MFC in Visual Studio 2010. I'm using CMFCVisualManagerVS2005 to change the visual appearance of my application. When I run my application its hiding Windows task bar by opening my application in maximized state. I have to open my Application in maximized state so I have disabled maximize button.

Any idea how can I run my application in maximized state without hiding Windows task bar??

2

2 Answers

0
votes

Right click the empty space on your task bar -> properties -> ensure "Keep the taskbar on top of other windows" is checked. Hopefully this is your issue

0
votes

Could you try placing the following code in CMainFrame::OnCreate(). I know it would be best to find the underlying issue, but this may suffice as a dirty fix.

HWND hTBar=::FindWindow("Shell_traywnd","");

::ShowWindow(hTBar,SW_SHOW);