CommonDialog.RunDialog(IntPtr) 方法

定义

在派生类中重写时,指定一个通用对话框。

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

一个值,表示公共对话框的所有者窗口的窗口句柄。

返回

true 如果对话框已成功运行,则为否则,为 false.

注解

当公共对话框的用户调用 ShowDialog时,将调用此方法,并且必须通过继承的 CommonDialog 类重写此方法来实现特定的通用对话框。

适用于

另请参阅