[]
A Message Loop filter which detects mouse events while the popup form is shown and notifies the owning PopupWindowHelper class when a mouse click outside the popup occurs.
public class PopupWindowHelperMessageFilter : IMessageFilter
Public Class PopupWindowHelperMessageFilter
Implements IMessageFilter
Name | Description |
---|---|
PopupWindowHelperMessageFilter(PopupWindowHelper, Control) | Constructs a new instance of this class and sets the owning object. |
Name | Description |
---|---|
Popup | Gets or sets the popup form which is being displayed. |
Name | Description |
---|---|
OnCancelPopup(PopupCancelEventArgs) | Raises the PopupCancel event. |
PreFilterMessage(ref Message) | Checks the message loop for mouse messages while the popup window is displayed. If one is detected the position is checked to see if it is outside the form, and the owner is notified if so. |
Name | Description |
---|---|
PopupCancel | Raised when the Popup Window is about to be cancelled. The
Cancel property can be
set to |