MFC怎么獲得當前屏幕大小
你可以這樣
HWND hwnd=GetDesktopWindow();
RECT?rect;
GetClientRect(hwnd,&rect);//可以得到桌面大小
還有就是上面所說的
int nScreenWidth, nScreenHeight;
nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
-
RECT rt;
文章來源:http://www.zghlxwxcb.cn/news/detail-696270.html -
SystemParametersInfo(SPI_GETWORKAREA,0,(PVOID)&rt,0);
文章來源地址http://www.zghlxwxcb.cn/news/detail-696270.html
到了這里,關于MFC中獲取任務欄大小的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!