win32api.MessageBox

int = MessageBox(hwnd, message , title , style , language )

Display a message box.

Parameters

hwnd : PyHANDLE

The handle of the parent window. See the comments section.

message : string

The message to be displayed in the message box.

title : string/None

The title for the message box. If None, the applications title will be used.

style=win32con.MB_OK : int

The style of the message box.

language=win32api.MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT) : int

The language ID to use.

Comments

Normally, a program in a GUI environment will use one of the MessageBox methods supplied by the GUI (eg, win32ui::MessageBox or PyCWnd::MessageBox)

Return Value

An integer identifying the button pressed to dismiss the dialog.