IApplication::EnableModeless (Windows CE 5.0)
This method enables or disables existing modeless pop-up windows.
HRESULT EnableModeless(
VARIANT_BOOL bEnable);
Parameters
bEnable
[in] Specifies whether modeless pop-up windows are enabled or disabled.The following table shows the possible values for bEnable.
Value Description TRUE Enables all modeless windows, returning the IDE to its normal state. Use this after an add-in has dismissed its modal dialog box.
FALSE Disables all modeless windows. Use this before an add-in displays a modal dialog box.
Return Values
None.
Remarks
Add-ins typically use EnableModeless to disable modeless pop-up windows before displaying a modal dialog box, so the user cannot click the other windows while the dialog is showing.
The following example shows how to use a pop-up window to report a date.
EnableModeless False
MsgBox "The current date is " & Date
EnableModeless True
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Appdefs.h.
Link Library: Import type library from Devshl.dll.
See Also
Macros and Add-ins | IApplication::AddCommand | IApplication::AddCommandBarButton | IApplication::SetAddInInfo
Send Feedback on this topic to the authors