如何判断对话框上的Edit的控件是否,发生了改变!(VC/MFC)

huanglaoxie1 2007-04-09 06:34:06
如何判断对话框上的Edit的控件是否,发生了改变!
我在对话框上,放了Edit,Buttion和Commbox控件,我如何判断用户是否改变里的其上的值啊!
...全文
544 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
qingmie1 2011-11-08
  • 打赏
  • 举报
回复
表示有帮助,顶
__grail__ 2007-04-10
  • 打赏
  • 举报
回复
void CXXXXDlg::OnChangeXXXX()
{
................//
}
dazedase 2007-04-10
  • 打赏
  • 举报
回复
late
yoyo_alex_lw 2007-04-10
  • 打赏
  • 举报
回复
支持,楼上的都说了
alan001 2007-04-09
  • 打赏
  • 举报
回复
支持,楼上的都说了
DentistryDoctor 2007-04-09
  • 打赏
  • 举报
回复
EN_UPDATE Notification

--------------------------------------------------------------------------------

The EN_UPDATE notification message is sent when an edit control is about to redraw itself. This notification message is sent after the control has formatted the text, but before it displays the text. This makes it possible to resize the edit control window, if necessary. The parent window of the edit control receives this notification message through a WM_COMMAND message.

Syntax

EN_UPDATE

WPARAM wParam
LPARAM lParam;
Parameters

wParam
The low-order word specifies the edit control identifier.
The high-order word specifies the notification message.

lParam
Handle to the edit control.
小金8 2007-04-09
  • 打赏
  • 举报
回复
Edit EN_Change消息
Combobox Selchange消息
宝_爸 2007-04-09
  • 打赏
  • 举报
回复
处理EN_CHANGE消息

--------------------------------------------------------------------------------

The EN_CHANGE notification message is sent when the user has taken an action that may have altered text in an edit control. Unlike the EN_UPDATE notification message, this notification message is sent after the system updates the screen. The parent window of the edit control receives this notification message through a WM_COMMAND message.

Syntax

EN_CHANGE

WPARAM wParam
LPARAM lParam;
Parameters

wParam
The low-order word specifies the edit control identifier.
The high-order word specifies the notification message.

lParam
Handle to the edit control.
Return Value

No return value.
Remarks

Rich Edit: Supported in Microsoft Rich Edit 1.0 and later. To receive EN_CHANGE notifications, specify ENM_CHANGE in the mask sent with the EM_SETEVENTMASK message. For information about the compatibility of rich edit versions with the various system versions, see About Rich Edit Controls.

The EN_CHANGE notification is not sent when the ES_MULTILINE style is used and the text is sent through WM_SETTEXT.

Notification Requirements

Minimum DLL Version None
Header Declared in Winuser.h, include Windows.h
Minimum operating systems Windows 95, Windows NT 3.1

See Also

Edit Controls Overview, EN_UPDATE, WM_COMMAND
会思考的草 2007-04-09
  • 打赏
  • 举报
回复
不过,按纽怎么改变其上的值?
Stefine 2007-04-09
  • 打赏
  • 举报
回复
那个Change消息?
会思考的草 2007-04-09
  • 打赏
  • 举报
回复
改变的时候会有相应的消息发送给父窗口的.

15,980

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧