为了处理被反射过来的控件通知消息,使用列于下表的消息映射宏和函数原型。
To handle a reflected control notification message, use the message-map macros and function prototypes listed in the table below.
向选定的类或对象添加消息处理程序,然后以新函数打开文本编辑器,以便可以添加控件通知处理程序代码。
Adds the message handler to the selected class or object, and then opens the text editor to the new function so you can add the control notification handler code.
然后发生该事件的通知会发送给控件中为该事件类型注册的所有监听器,发送顺序是这些监听器在控件上的注册顺序。
This is followed by notification of event occurrence to all listeners of the widget registered for that same event type and in the order in which the listeners were registered on widget.
Label控件用于通知消息被发送还是遇到错误。
A Label control to signal whether the message was sent or an error was encountered.
现在,当这个控件上产生一个t1类型的事件时,第一个接收到发生该事件的通知的是Filter1,然后是Listener 1,最后是Listener2。
Now, when an event of type t1 occurs on that widget, first Filter 1 is informed of the event occurrence, followed by Listener 1, then Listener 2.
在上述的情况下,每个需要自定义背景控件的对话框都不得不处理控件颜色通知消息。
In the case above, every dialog box that wanted controls with custom backgrounds would have to handle the control color notification message.
当用户从菜单中选择了一项,或者子控件发出一个通知消息,或者转换了一个加速键的击键事件,框架就调用这个成员函数。
The framework calls this member function when the user selects an item from a menu, when a child control sends a notification message, or when an accelerator keystroke is translated.
不隶属于该控件的属性通知接收器。
在的子控件的变化(响应用户操作)的状态下,通过捕捉那些发送一些通知消息到它的父窗口,父窗口消息,执行操作。
When the state of a child control changes (in response to a user action), it sends some notification messages to it's parent window, and parent window by catching those messages, performs actions.
此策略意味着控件不需要维护事件通知的目标对象列表——委托可处理所有的注册和通知。
This strategy means that the control does not need to maintain a list of target objects for event notification-the delegate handles all registration and notification.
此方法通知服务器控件在保存视图状态和呈现内容之前,执行任何必要的预呈现步骤。
This method notifies the server control to perform any necessary pre-rendering steps prior to saving view state and rendering content.
实现该接口时,所创建的控件在被通知已分析元素后立即定义要发生的处理。
When you implement this interface, the control you create defines what processing occurs once it has been notified that an element has been parsed.
该方法通知服务器控件,先执行呈现前需要执行的所有步骤,然后再保存视图状态和呈现内容。
This method notifies the server control to perform any necessary prerendering steps prior to saving view state and rendering content .
通知某个控件是默认按钮,以便相应调整其外观和行为。
Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly.
单击要为其处理通知事件的控件。
Click the control for which you want to handle the notification event.
单击要为其处理通知事件的控件。
Click the control for which you want to handle the notification event.
应用推荐