求助:Edit Control自动更新问题
我想在Combo-box-Control复选框选中一项后Edit Control编辑框内能自动更新,请问Combo-box-Control复选框是哪个函数能在到这个效果?谢谢!
[解决办法]
CEdit::SetModify
void SetModify( BOOL bModified = TRUE );
Parameters
bModified
A value of TRUE indicates that the text has been modified, and a value of FALSE indicates it is unmodified. By default, the modified flag is set.
Remarks
Call this function to set or clear the modified flag for an edit control. The modified flag indicates whether or not the text within the edit control has been modified. It is automatically set whenever the user changes the text. Its value may be retrieved with the GetModify member function.
For more information, seeEM_SETMODIFY in the Win32 documentation.
CEdit Overview
[解决办法]
Class Members
[解决办法]
Hierarchy Chart
See Also CEdit::GetModify
[解决办法]
Sets the text of an edit control.
Syntax
C++
int Edit_SetText(
HWND hwndCtl,
LPTSTR lpsz
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
lpsz
Type: LPTSTR
A pointer to a null-terminated string to be set as the text in the control.
Return value
If the function succeeds, the return value is nonzero. If it fails, the return value is zero.