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

拥有对话框的窗口的句柄。

返回

如果用户单击显示的对话框的“确定”按钮(例如OpenFileDialog),SaveFileDialogtrue则返回;否则为 false

注解

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

适用于