Compartilhar via


IUIHostLocale2.LoadDialog Method

Definition

Overloads

LoadDialog(IntPtr, UInt32, IntPtr)
LoadDialog(UInt32, UInt32, IntPtr)

Loads a dialog box template.

LoadDialog(IntPtr, UInt32, IntPtr)

public:
 int LoadDialog(IntPtr hMod, System::UInt32 dwDlgResId, [Runtime::InteropServices::Out] IntPtr % ppDlgTemplate);
public int LoadDialog (IntPtr hMod, uint dwDlgResId, out IntPtr ppDlgTemplate);
abstract member LoadDialog : nativeint * uint32 * nativeint -> int
Public Function LoadDialog (hMod As IntPtr, dwDlgResId As UInteger, ByRef ppDlgTemplate As IntPtr) As Integer

Parameters

hMod
IntPtr

nativeint

dwDlgResId
UInt32
ppDlgTemplate
IntPtr

nativeint

Returns

Remarks

This method is safe to access from any thread.

Applies to

LoadDialog(UInt32, UInt32, IntPtr)

Loads a dialog box template.

public:
 int LoadDialog(System::UInt32 hMod, System::UInt32 dwDlgResId, [Runtime::InteropServices::Out] IntPtr % ppDlgTemplate);
public int LoadDialog (uint hMod, uint dwDlgResId, out IntPtr ppDlgTemplate);
abstract member LoadDialog : uint32 * uint32 * nativeint -> int
Public Function LoadDialog (hMod As UInteger, dwDlgResId As UInteger, ByRef ppDlgTemplate As IntPtr) As Integer

Parameters

hMod
UInt32

[in] Handle to the module that will create the dialog box.

dwDlgResId
UInt32

[in] Identifier of the dialog box template.

ppDlgTemplate
IntPtr

nativeint

[out] Pointer to the dialog box template to load.

Returns

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

Remarks

COM Signature

From uilocale.idl:

HRESULT IUIHostLocale2::LoadDialog(  
   [in] DWORD_PTR hMod,  
   [in] DWORD dwDlgResId,  
   [out] BYTE **ppDlgTemplate  
);  

Named dialogs are not supported.

Applies to