win32中LAYERED窗口实现AnimateWindow
我在创建窗口的时候使用了WS_EX_LAYERED属性并调用了SetLayeredWindowAttributes(),之后我再调用AnimateWindow()就不会出现动画效果了...请问这如何解决?
BOOL InitInstance(HINSTANCE hInstance)
{
....
hWnd = CreateWindowEx(WS_EX_LAYERED | WS_EX_TOPMOST, szWindowClass, szTitle, WS_POPUP, deskRect.right - 140, 0, 140, deskRect.bottom - deskRect.top, HWND_DESKTOP, NULL, hInstance, NULL);
SetLayeredWindowAttributes(hWnd, RGB(10,10,10), 210, LWA_ALPHA);
AnimateWindow(hWnd, 1000, AW_HOR_POSITIVE | AW_SLIDE | AW_ACTIVATE);
....
}