for(int i=0; i<8; I++)
{
Int v=10 * I;
Graphics. DrawString ((const WCHAR *) v, 1, & amp; MyFont PointF (Width * 0.14, Height * I * (0.125 + 0.2)), & amp; BrushB);
}
The great god help look at it? How to use GDI + the int data displayed?
CodePudding user response:
Int is converted to a String, use the format functionCodePudding user response:
Oneself solved, use this, not the format ofWCHAR buf [160].
WsprintfW (buf, L "% d", a);