xtd 0.2.0
Loading...
Searching...
No Matches

◆ pre_filter_message()

virtual bool xtd::forms::imessage_filter::pre_filter_message ( const message m)
pure virtual

Filters out a message before it is dispatched.

Parameters
mThe message to be dispatched. You cannot modify this message.
Returns
true to filter the message and stop it from being dispatched; false to allow the message to continue to the next filter or control.
Remarks
Use pre_filter_message to filter out a message before it is dispatched to a control or form. For example, to stop the click event of a button control from being dispatched to the control, you implement the pre_filter_message method and return a true value when the click message occurs. You can also use this method to perform code work that you might need to do before the message is dispatched.