I want to hide my application on certain conditions when the
application is minimized. Till now i was using ShowWindow to achieve
this and it worked fine. Now when I am using the AnimateWindow API the
window gets hidden but the window's entry in the taskbar remains. I am
posting the code that i have written.
void CMainFrame::OnSysCommand(UINT nID, LPARAM lParam)
if ((nID & 0xFFF0) == SC_MINIMIZE)
this->AnimateWindow(200,AW_HIDE |AW_SLIDE | AW_VER_POSITIVE);