티스토리 뷰
//
// SendTray
//
// 트레이로 보내는 애니메이션을 표시한다.
//
VOID SendTray(HWND hwnd, BOOL bTo)
{
RECT rcFrom, rcTo;
HWND hTrayP = FindWindow("Shell_TrayWnd", NULL);
HWND hTrayC = FindWindowEx(hTrayP, NULL, "TrayNotifyWnd", NULL);
if(hTrayC)
{
GetWindowRect(hTrayC, &rcTo);
}
else
{
SystemParametersInfo(SPI_GETWORKAREA, 0, &rcTo, 0);
rcTo.left = rcTo.right - 118;
rcTo.top = rcTo.bottom - 30;
}
GetWindowRect(hwnd, &rcFrom);
if(bTo == TRUE)
DrawAnimatedRects(hwnd, 3, &rcFrom, &rcTo);
else
DrawAnimatedRects(hwnd, 3, &rcTo, &rcFrom);
}
// SendTray
//
// 트레이로 보내는 애니메이션을 표시한다.
//
VOID SendTray(HWND hwnd, BOOL bTo)
{
RECT rcFrom, rcTo;
HWND hTrayP = FindWindow("Shell_TrayWnd", NULL);
HWND hTrayC = FindWindowEx(hTrayP, NULL, "TrayNotifyWnd", NULL);
if(hTrayC)
{
GetWindowRect(hTrayC, &rcTo);
}
else
{
SystemParametersInfo(SPI_GETWORKAREA, 0, &rcTo, 0);
rcTo.left = rcTo.right - 118;
rcTo.top = rcTo.bottom - 30;
}
GetWindowRect(hwnd, &rcFrom);
if(bTo == TRUE)
DrawAnimatedRects(hwnd, 3, &rcFrom, &rcTo);
else
DrawAnimatedRects(hwnd, 3, &rcTo, &rcFrom);
}
댓글