我没MSDN,你粘贴的也可以。
解决方案 »
- 考考你。。。
- 线程里加消息函数编译通不过
- VC 得到字符串
- OnPaletteChanged(CWnd* pFocusWnd) 和OnQueryNewPalette() 到底是干什么用的?
- 从char*中读出数据计算然后返回结果的问题
- 关于 GetWindowTextA的问题
- 为什么UI线程中执行pFrame->GetActiveDocument()语句会出错?
- 日志文件问题
- 请问一般大型的软件公司主要是用那些语言开发?
- 初学者的小问题。我定义了:int a ; cstring ss; ss="12234";请问如何把SS转给a?谢谢!!
- 如何在winxp的机子上编程修改机子的ipv6地址(高分求救)
- 一个简单问题?
The TEXT macro identifies a string as Unicode when the UNICODE compile flag is used or as an ANSI string when Unicode is not defined. TEXT(
LPTSTR string // address of ANSI or Unicode string
);
Parameters
string
Specifies the string to be interpreted as either Unicode or ANSI. Res
The TEXT macro is defined as follows: #define TEXT(quote) L##quote
#ifdef UNICODE
#define __TEXT(quote) L##quote
#else /* UNICODE */
#define __TEXT(quote) quote
#endif /* UNICODE */
#define TEXT(quote) __TEXT(quote) 在定义了UNICODE的情况下它返回UNICODE字符串
在未定义UNICODE情况下返回ANSI字符串
Platform SDK: International Features TEXT
The TEXT macro identifies a string as Unicode when the UNICODE is defined during compilation. Otherwise, it identifies a string as an ANSI string. TEXT(
LPTSTR string // ANSI or Unicode string
);
Parameters
string
Pointer to the string to be interpreted as either Unicode or ANSI.
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winnt.h; include Windows.h.See Also
Unicode and Character Sets Overview, Unicode and Character Set Macros
_____________________________________________________________________________
Platform SDK: Exchange Server
TEXT
The TEXT object allows the user to put a line of text on the page in a specified area. This object must always specify a VALUE property with a string that can contain one or more of the following metavariables.Metavariable Description
&USERNAME Prints the user's name.
&CURDATE Prints the current date.
&CURTIME Prints the current time.
&PRINTDATE Prints the date for which the object is printed.
&PAGENUM Prints the page number.
&TIMEZONE Prints the current time zone.
&& Prints an ampersand (&).
The OPTIONS property, if present, requires the following parameters.Parameter Description
HCENTER | LEFT | RIGHT Specifies the horizontal justification.
VCENTER | NONE Specifies the vertical justification.
ELLIPSIS | NONE Adds an ellipsis to the end of a string if the entire string does not fit within the described rectangle.
Multiline text prints if there is room in the rectangle, but using VCENTER on a multiline text block can produce unpredictable results.