intDrawTextW( [in] HDC hdc, [in, out] LPCWSTR lpchText, [in]intcchText, [in, out] LPRECT lprc, [in] UINT format ); 参数 [in] hdc 设备上下文的句柄。 [in, out] lpchText 指向指定要绘制的文本的字符串的指针。 如果nCount参数为 -1,则字符串必须以 null 结尾。
CD3DFont *g=NULL;g->DrawTextW(0,0,0,"ddd",0); //g的值是NULL,可以用g-> ???你用的是C++还是C?CD3DFont* Font;Font = new CD3DFont("Times New Roman", 24, 0);Font->InitDeviceObjects( Device );Font->RestoreDeviceObjects();Font->DrawText(20, 40, 0xff0000ff,...