GDI+
m_sShowInfo文字经常变化,能获取到不同m_sShowInfo文字的在界面显示的Rect么? 或者只获取界面长度也行!
WCHAR m_sShowInfo[64] = L"xxxxxxxxxxx";
GraphicsPath path;
path.AddString(m_sShowInfo, wcslen(m_sShowInfo), &fontFamily,
g_FontBold,
g_FontSize, Gdiplus::Point(10,10), &strformat );
Pen pen(g_ARGBPen, g_PenSize);
pen.SetLineJoin(LineJoinRound);
graphics.DrawPath(&pen, &path);
LinearGradientBrush brush(Gdiplus::Rect(10, 10, 30, 60), g_ARGBBrush1, g_ARGBBrush2, LinearGradientModeVertical);
graphics.FillPath(&brush, &path);