我的定义如下
CString r;
r的内容为:
"adfjhdfh"+"\n"+"sdjfkj"+"\n"+"dsfdsjfh";
现在用textout()输出,希望能够如以下:
adfjhdfh
sdjfkj
dsfdsjfh
请问如何实现
CString r;
r的内容为:
"adfjhdfh"+"\n"+"sdjfkj"+"\n"+"dsfdsjfh";
现在用textout()输出,希望能够如以下:
adfjhdfh
sdjfkj
dsfdsjfh
请问如何实现
调试欢乐多
HDC hdc, // handle to device context
LPTSTR lpchText, // pointer to string to draw
int cchText, // length of string to draw
LPRECT lprc, // pointer to rectangle coordinates
UINT dwDTFormat, // formatting options
LPDRAWTEXTPARAMS lpDTParams // pointer to struct with options
);
这个功能很强
{
CTestsin3Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CString s="adfasl\r\nalsasd\r\nasldsafasdfsadf";
CRect r;
GetClientRect(r);
pDC->DrawText(s,r,DT_BOTTOM);
// TODO: add draw code for native data here
}