#include "Winuser.h" #pragma comment(lib,"user32.lib") CPopDlg m_popDlg; m_popDlg.Create(IDD_DIALOG1,this); int x= GetSystemMetrics(SM_CXSCREEN); int y= GetSystemMetrics(SM_CYSCREEN); ::SetWindowPos(m_popDlg.m_hWnd,NULL,x-349,y-234,349,207,SWP_NOACTIVATE ); ::AnimateWindow(m_popDlg.m_hWnd,1000,AW_VER_NEGATIVE|AW_SLIDE);