注册 登录
编程论坛 VC.NET论坛

[求助]

409808575 发布于 2005-10-22 20:08, 1044 次点击
请问什么是TextOut函数,其用法怎样?
1 回复
#2
zhangzujin2005-10-26 17:13

查帮助么.

TextOut

The TextOut function writes a character string at the specified location, using the currently selected font, background color, and text color.

BOOL TextOut(  HDC hdc,           // handle to DC  int nXStart,       // x-coordinate of starting position  int nYStart,       // y-coordinate of starting position  LPCTSTR lpString,  // character string  int cbString       // number of characters);



比如说
pDC->TextOut(0,0,'Welcome to Visual C++.Net');
当然了,我是瞎说的.
很多我都不会,不知道怎么去学Viual C++.Net,那好麻烦.
也没例子仿照.
1