怎么在对话框上写字
case WM_PAINT:
hdc = BeginPaint(hDlg, &ps);
// TODO: Add any drawing code here...
RECT rt;
GetClientRect(hDlg, &rt);
COLORREF crBkColor = ::GetSysColor(COLOR_3DFACE);
DrawText(hdc, "hello ", 5, &rt, DT_CENTER);
EndPaint(hDlg, &ps);
break;
我想在dlg(对话框上写个"hello"字符串,可是却有个矩形的白色背景,我现在想只写个字符串而不要背景,DrawText还不能画到任意位置,请教如何实现?