[VC]双显示器,程序运行时自动在副屏上显示 阅读(1) 赞 评论 转载(1) 分享 复制地址 收藏夹按钮收藏 更多 下一篇:经典句型 [VC]双显示器,程序运行时自动在副屏上显示 m_iScreenWidth = GetSystemMetrics(SM_CXSCREEN); m_iScreenHeight = GetSystemMetrics(SM_CYSCREEN); { CPoint pt2(m_iScreenWidth + 10, 10); HMONITOR HMonitor = MonitorFromPoint(pt2, MONITOR_DEFAULTTONULL); if (HMonitor) // 显示在副屏上 { SetWindowPos(&CWnd::wndTopMost, m_iScreenWidth, 0, m_iScreenWidth, m_iScreenHeight, SWP_SHOWWINDOW); } } 相关文章: