RECT& rc = *(RECT*)di.prcBounds;
Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);
RETAILMSG( CC_CAMERA_MSGFLAG, (TEXT("[Camera CC] ONDRAW :rc prcBounds %d, %d, %d, %d !!!! \n" ), rc.left, rc.top, rc.right, rc.bottom));
DrawText(di.hdcDraw, _T("TEST \n OUPT \n STRING \n DATA \n sssss\nssssss\nsssssss\nsssssss\nsssssss\nsssss\n"), 100, &rc, DT_LEFT);
DrawText(di.hdcDraw, _T("0123456789abcdefghijklmnopqrstuvwxyz!"), -1, &rc, DT_TOP | DT_LEFT | DT_WORDBREAK);
以上这些代码没有输出, DrawText返回值为0,改成TextOut
SetTextAlign(di.hdcDraw, TA_CENTER|TA_BASELINE);
LPCTSTR pszText = _T("ATL 8.0 : TestCtrl");
#ifndef _WIN32_WCE
TextOut(di.hdcDraw,
(rc.left + rc.right) / 2,
(rc.top + rc.bottom) / 2,
pszText,
lstrlen(pszText));
#else
ExtTextOut(di.hdcDraw,
(rc.left + rc.right) / 2,
(rc.top + rc.bottom) / 2,
ETO_OPAQUE,
NULL,
pszText,
lstrlen(pszText),
NULL);
#endif
还是没有输出,求高手解答......