vc 右下角弹出提示对话框

void XXXX::OnTimer(UINT nIDEvent) { // TODO: Add your message handler code here and/or call default if (nIDEvent == enTimerTIDlgAutoHide) { KillTimer(enTimerTIDlgAutoHide); this->ShowWindow(SW_HIDE); //SendMessage(WM_CLOSE); } if (nIDEvent == enTimerTIDlgGraduPop) { int w=GetSystemMetrics(SM_CXFULLSCREEN); int h=GetSystemMetrics(SM_CYFULLSCREEN); CRect rect,rc; GetWindowRect(rect); GetDesktopWindow()->GetWindowRect(rc); MoveWindow(w-258,h+26-rect.Height(),rect.Width(),+2+rect.Height()); if((rect.Width()>=m_width)&&(rect.Height()>=m_height)) { KillTimer(enTimerTIDlgGraduPop); } } CDialog::OnTimer(nIDEvent); }

你可能感兴趣的:(vc 右下角弹出提示对话框)