如何在 C++ 中的 MessageBox() 中显示数值

How to display numeric value in the MessageBox() ?in c++

本文关键字:显示 MessageBox C++ 中的      更新时间:2023-10-16

我需要在消息框中将屏幕分辨率像素显示为输出。我该怎么做?

CString msg;
msg.Format(_T("%d"), number);
AfxMessageBox(msg);