AnimateWindow API hide leaves trails

  animatewindow, c++, winapi

I am using AnimateWindow to show/hide my toolbar. During Hide the toolbar leaves a trail and after a few seconds it disappears. How can I eliminate these trails during hide?

AnimateWindow(m_hWndToolbar, 200,  AW_SLIDE | AW_VER_NEGATIVE | AW_HIDE);
ShowWindow(m_hWndToolbar, SW_HIDE);

Trails image

Source: Windows Questions C++

LEAVE A COMMENT