IVsFindCancelDialog::QueryDialog Method (Int32)

 

Determines whether the user of the modeless dialog on the background thread has cancelled a find or replace operation.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int QueryDialog(
	[OutAttribute] int% pfCancel
)

Parameters

pfCancel
Type: System::Int32

[out] True if the user has clicked cancel, otherwise false.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Call this method to query the state of the modeless dialog opened on the background thread with a call to LaunchDialog.

The environment's implementation of the QueryDialog method allocates time to the background dialog and queries it to see if the user has canceled the find operation.

The environment's implementation of the IVsFindCancelDialog interface is thread-aware, so you may use the QueryDialog method without regard to whether your calling process is on the foreground or background thread.

Return to top
Show: