“不知道改怎么输入数据”是什么意思?
要得到可以用GetWindowText()呀
要得到可以用GetWindowText()呀
解决方案 »
- 有关游戏开发的问题
- 释放的时候为什么会出错??
- ADSL中申请的固定IP一定是公网IP吧
- MFC相关问题可以解决吗?
- 同志们,我想一加入activex控件,测试容器就将我的对话框显示出来(像ondraw的椭圆),而不是通过方法调用才弹出来,但下面方法不行,有
- m_pConnection->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Demo.mdb","","",adModeUnknown);总是出错?
- 谁有钱能老师的那本书的源码啊??
- 各位,请推荐好论谈,来都有分
- 自己写的transformFilter执行很慢
- 急死我了:如何在在动态库中显示对话框?
- 想询问网络多媒体的流式传输的问题……
- 高手请进,求救,谢谢!!!!
SetDlgItemText()GetDlgItemText
The GetDlgItemText function retrieves the title or text associated with a control in a dialog box. UINT GetDlgItemText(
HWND hDlg, // handle of dialog box
int nIDDlgItem, // identifier of control
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum size of string
);
Parameters
hDlg
Identifies the dialog box that contains the control.
nIDDlgItem
Specifies the identifier of the control whose title or text is to be retrieved.
lpString
Pointer to the buffer to receive the title or text.
nMaxCount
Specifies the maximum length, in characters, of the string to be copied to the buffer pointed to by lpString. If the length of the string exceeds the limit, the string is truncated.
Return Values
If the function succeeds, the return value specifies the number of characters copied SetDlgItemText
The SetDlgItemText function sets the title or text of a control in a dialog box. BOOL SetDlgItemText(
HWND hDlg, // handle of dialog box
int nIDDlgItem, // identifier of control
LPCTSTR lpString // text to set
);
Parameters
hDlg
Identifies the dialog box that contains the control.
nIDDlgItem
Identifies the control with a title or text that is to be set.
lpString
Pointer to the null-terminated string that contains the text to be copied to the control.
Return Values
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError. Res
The SetDlgItemText function sends a WM_SETTEXT