摘要:
在CWinApp类的InitInstance()中添加如下代码RECT rc;::GetWindowRect( m_pMainWnd->m_hWnd, &rc );::SetWindowPos( m_pMainWnd->m_hWnd, HWND_TOP, ( GetSystemMetrics( SM_CXSCREEN ) - ( rc.right - rc.left ) ) / 2,( GetSystemMetrics( SM_CYSCREEN ) - ( rc.bottom - rc.top ) ) / 2,rc.right - rc.left, rc.bottom - 阅读全文