- 注册时间
- 2004-12-21
- 最后登录
- 1970-1-1
|
发表于 2006-12-3 21:02:03
|
显示全部楼层
我只知道:GetDlgItemText
以下cpoy来自 MSDN2003版
int GetDlgItemText(
int nID,//这里其实是控件ID……
LPTSTR lpStr,//其实就是char*类型吧……我不太确定……
int nMaxCount
) const;
int GetDlgItemText(
int nID,//这里其实是控件ID……
CString& rString //存放控件名的字串,注意是CString类型的。
) const;
Parameters
nID
Specifies the integer identifier of the control whose title is to be retrieved.
lpStr
Points to the buffer to receive the control's title or text.
nMaxCount
Specifies the maximum length (in bytes) of the string to be copied to lpStr. If the string is longer than nMaxCount, it is truncated.
rString
A reference to a CString.
Return Value
Specifies the actual number of bytes copied to the buffer, not including the terminating null character. The value is 0 if no text is copied.
Remarks
The GetDlgItemText member function copies the text to the location pointed to by lpStr and returns a count of the number of bytes it copies. |
|