NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CommonDialog.RunDialog

When overridden in a derived class, specifies a common dialog box.

[Visual Basic]
MustOverride Protected Function RunDialog( _
   ByVal hwndOwner As Integer, _
   ByVal hookProcPtr As WndProc _
) As Boolean
[C#]
protected abstract bool RunDialog(
   int hwndOwner,
   WndProc hookProcPtr
);
[C++]
protected: virtual bool RunDialog(
   int hwndOwner,
   WndProc* hookProcPtr
) = 0;
[JScript]
protected abstract function RunDialog(
   hwndOwner : int,
   hookProcPtr : WndProc
) : Boolean;

Parameters

hwndOwner
A value that represents the window handle of the owner window for the common dialog box.
hookProcPtr
A value that represents the address of a common dialog box hook that will invoke HookProc.

Remarks

This method is invoked when the user of a common dialog calls ShowDialog, and it must be overridden by inherited classes of CommonDialog to implement a specific common dialog. An implementation of this method should store the hwndOwner and hookProcPtr parameters in the common dialog structure's hwndOwner and lpfnHook fields.

See Also

CommonDialog Class | CommonDialog Members | System.WinForms Namespace | ShowDialog | HookProc