RECT rc;
if (::GetWindowRect(g_hwnd, &rc))
{
LONG width = rc.right - rc.left;
LONG height = rc.bottom - rc.top;
for (unsigned int i = 1; i <= DEFAULT_SHOW_STEP; i++)
{
LONG h = height * i / DEFAULT_SHOW_STEP;
::SetWindowPos(g_hwnd, HWND_TOPMOST, rc.left, rc.bottom - h, width, h, SWP_NOACTIVATE | SWP_SHOWWINDOW);
Sleep(DEFAULT_SHOW_TIME / DEFAULT_SHOW_STEP);
}
}