Export (0) Print
Expand All

PCHHelpCenterExternal.MessageBox method

[PCHHelpCenterExternal is available for use in the operating systems specified in the Requirements section.]

The MessageBox method provides a wrapper for the Win32 MessageBox function.

Syntax


sDisplayText = PCHHelpCenterExternal.MessageBox(
  sText,
  sFlags
)

Parameters

sText [in]

String that contains the text displayed in the message box.

sFlags [in]

String that contains one or more type, icon, or mode flags (these flags are listed in the Remarks section). If you use more than one flag, separate the names with spaces.

Return value

Returns a string that contains the text to display in the message box.

Remarks

The following table lists the type flags and the MB_* flags to which they map.

Type FlagsMap to MB_* Flags
OKMB_OK
OKCANCELMB_OKCANCEL
ABORTRETRYIGNOREMB_ABORTRETRYIGNORE
YESNOCANCELMB_YESNOCANCEL
YESNOMB_YESNO
RETRYCANCELMB_RETRYCANCEL
CANCELTRYCONTINUEMB_CANCELTRYCONTINUE

 

The following table lists the icon flags and the MB_* flags to which they map.

Icon FlagsMap to MB_* Flags
ICONHANDMB_ICONHAND
ICONQUESTIONMB_ICONQUESTION
ICONEXCLAMATIONMB_ICONEXCLAMATION
ICONASTERISKMB_ICONASTERISK
USERICONMB_USERICON
ICONWARNINGMB_ICONWARNING
ICONERRORMB_ICONERROR
ICONINFORMATIONMB_ICONINFORMATION
ICONSTOPMB_ICONSTOP

 

The following table lists the mode flags and the MB_* flags to which they map.

Mode FlagsMap to MB_* Flags
DEFBUTTON1MB_DEFBUTTON1
DEFBUTTON2MB_DEFBUTTON2
DEFBUTTON3MB_DEFBUTTON3
DEFBUTTON4MB_DEFBUTTON4
APPLMODALMB_APPLMODAL
SYSTEMMODALMB_SYSTEMMODAL
TASKMODALMB_TASKMODAL
HELPMB_HELP

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows 7

End of server support

Windows Server 2008 R2

Type library

HelpCenterTypeLib.tlb

DLL

Helpctr.exe

 

 

Show:
© 2014 Microsoft