CommonDialog.RunDialog(IntPtr) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,调用它以显示特定类型的 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 参数指定。