CommonMessagePump::IVsCommonMessagePump::SetAllowCancel Method (Boolean)
Visual Studio 2015
Determines whether the wait dialog has an enabled cancel button.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
private: virtual int SetAllowCancel( bool allowCancel ) sealed = IVsCommonMessagePump::SetAllowCancel
Parameters
- allowCancel
-
Type:
System::Boolean
true if the wait dialog has an enabled cancel button, otherwise false.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This may be set before calling ModalWaitForHandles or during one of the callbacks in ModalWaitForHandlesWithClient.
Show: