Compartir a través de


IVsUIShell2.VsDialogBoxParam Method

Definition

Overloads

VsDialogBoxParam(IntPtr, UInt32, IntPtr, IntPtr)
VsDialogBoxParam(UInt32, UInt32, UInt32, Int32)

Loads and displays the specified dialog template using the specified dialog callback procedure.

VsDialogBoxParam(IntPtr, UInt32, IntPtr, IntPtr)

public:
 int VsDialogBoxParam(IntPtr hinst, System::UInt32 dwId, IntPtr lpDialogFunc, IntPtr lp);
public int VsDialogBoxParam (IntPtr hinst, uint dwId, IntPtr lpDialogFunc, IntPtr lp);
abstract member VsDialogBoxParam : nativeint * uint32 * nativeint * nativeint -> int
Public Function VsDialogBoxParam (hinst As IntPtr, dwId As UInteger, lpDialogFunc As IntPtr, lp As IntPtr) As Integer

Parameters

hinst
IntPtr

nativeint

dwId
UInt32
lpDialogFunc
IntPtr

nativeint

lp
IntPtr

nativeint

Returns

Applies to

VsDialogBoxParam(UInt32, UInt32, UInt32, Int32)

Loads and displays the specified dialog template using the specified dialog callback procedure.

public:
 int VsDialogBoxParam(System::UInt32 hinst, System::UInt32 dwId, System::UInt32 lpDialogFunc, int lp);
public:
 int VsDialogBoxParam(unsigned int hinst, unsigned int dwId, unsigned int lpDialogFunc, int lp);
int VsDialogBoxParam(unsigned int hinst, unsigned int dwId, unsigned int lpDialogFunc, int lp);
public int VsDialogBoxParam (uint hinst, uint dwId, uint lpDialogFunc, int lp);
abstract member VsDialogBoxParam : uint32 * uint32 * uint32 * int -> int
Public Function VsDialogBoxParam (hinst As UInteger, dwId As UInteger, lpDialogFunc As UInteger, lp As Integer) As Integer

Parameters

hinst
UInt32

[in] 32-bit handle to the module that contains the dialog template as a resource. Cannot be a null value.

dwId
UInt32

[in] The resource ID of the dialog template to load.

lpDialogFunc
UInt32

[in] The dialog procedure to use for the dialog box. Cannot be a null value.

lp
Int32

[in] The LPARAM value to pass with the WM_INITDIALOG message (which is sent to the dialog procedure).

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsUIShell2::VsDialogBoxParam(  
   [in] HINSTANCE hinst,  
   [in] DWORD     dwId,  
   [in] DLGPROC   lpDialogFunc,  
   [in] LPARAM    lp  
);  

This method overrides the help button normally displayed in the title bar of the dialog box with a button that calls up normal help instead of starting a context-sensitive help mode.

This method is designed to be used from C++ only.

Applies to