C++ 如何在c++;

C++ 如何在c++;,c++,mfc,C++,Mfc,我需要在MessageBox中显示屏幕分辨率像素作为输出。我如何才能做到这一点?的可能重复 CString msg; msg.Format(_T("%d"), number); AfxMessageBox(msg);

我需要在MessageBox中显示屏幕分辨率像素作为输出。我如何才能做到这一点?

的可能重复
CString msg;
msg.Format(_T("%d"), number);
AfxMessageBox(msg);