Share via


CommonDialog.RunDialog(IntPtr) 方法

定义

在派生类中重写时, 调用 以显示特定类型的 Win32 公共对话。

protected:
 abstract bool RunDialog(IntPtr hwndOwner);
protected abstract bool RunDialog (IntPtr hwndOwner);
abstract member RunDialog : nativeint -> bool
Protected MustOverride Function RunDialog (hwndOwner As IntPtr) As Boolean

参数

hwndOwner
IntPtr

nativeint

对话框所在的窗口的句柄。

返回

如果用户单击 (显示的对话框的“确定”按钮,则 OpenFileDialogSaveFileDialog 返回) true;否则false返回 。

注解

最终显示的对话框分配有一个所有者窗口,该窗口由 hwndOwner 参数指定。

适用于