有人看过PETZOLD的windows程序设计的人吗
第78页
int iLength;
TCHAR szBuffer[40];
iLength=wsprintf(szBuffer,TEXT("The sum of %i and %i is %i"),iA,iB,iA+iB);
TextOut(hdc,x,y,szBuffer,iLength);
有人能帮我解释这段代码吗
我不懂那个TEXT的用法,我查了MSDN,上面写了这么一段话TEXT
A Win32 macro that exists so that code can be compiled either as American National Standards Institute (ANSI) text or as Unicode. For Windows CE, which supports only Unicode, the macro forces the compiler to convert ANSI characters to Unicode characters. For example, passing the ANSI string "Hello Windows CE!'' through the TEXT macro converts all characters in the string to 16-bit wide characters.
wsprint的用法我不会,MSDN这么说的int wsprintf(
LPTSTR lpOut, // pointer to buffer for output
LPCTSTR lpFmt, // pointer to format-control string
... // optional arguments
);
那iA,iB,iA+iB这个是什么意思呀
还有79页那个SYSMETRICS里的那一大串代码是什么意思