- CString sysop::GetMetrics()
- {
- //分辨率
- int x = GetSystemMetrics (SM_CXSCREEN);
- int y = GetSystemMetrics (SM_CYSCREEN);
- CString strScreen;
- strScreen.Format("%d x %d",x,y);
- return strScreen;
- }
- //该片段来自于http://www.codesnippet.cn/detail/230520133525.html
来源: http://www.codesnippet.cn/detail/230520133525.html