Compartilhar via


IVsFindCancelDialog.QueryDialog(Int32) Method

Definition

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

public:
 int QueryDialog([Runtime::InteropServices::Out] int % pfCancel);
int QueryDialog([Runtime::InteropServices::Out] int & pfCancel);
public int QueryDialog (out int pfCancel);
abstract member QueryDialog : int -> int
Public Function QueryDialog (ByRef pfCancel As Integer) As Integer

Parameters

pfCancel
Int32

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

Returns

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

Remarks

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.

Applies to