Options specified by a control to indicate the actions to be taken by the Notification System in a case
where there is a message to be delivered to the receiver Control but the HWND of the control hasn't been
created yet and the control is unable to receive windows messages in its own thread as a result.
| C# | Visual Basic | Visual C++ |
public enum DeliverPolicyWhenControlIsHidden
Public Enumeration DeliverPolicyWhenControlIsHidden
public enum class DeliverPolicyWhenControlIsHidden
| Member | Description |
|---|---|
| RetryLater |
Delivery will be retried later. The message will be left in a queue for the specified by IControlMessageDeliverPolicy.DiscardTimeOutOnRetry time
but no longer than MaxDiscardTimeOut of the Notification System.
|
| DeliverInDifferentThread |
The message will be delivered asynchronously in a thread different than the control's own thread.
Attempting to do any UI updates when the message is received will result in a cross-thread operation warning by .NET
|
| Discard |
The message will be discarded
|
| CreateHWNDAndRetryImmediately |
The HWND of the receiver control will be created by the Notification System and the message will be delivered
in the control's own thread. No .NET cross-thread operation warnings will occur.
|