C & C++/C & C++
트레이아이콘으로 이동하는 애니메이션
izen8
2011. 10. 26. 09:49
void CH7TrayDlg::ShowToTray( HWND hWnd )
{
RECT rectFrom;
RECT rectTo;
::GetWindowRect( hWnd, &rectFrom );
::SystemParametersInfo( SPI_GETWORKAREA, 0, &rectTo, 0 );
rectTo.left = rectTo.right - 70;
rectTo.top = rectTo.bottom - 10;
::DrawAnimatedRects( hWnd, IDANI_CAPTION, &rectFrom, &rectTo );
::ShowWindow( hWnd, SW_HIDE );
}