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

Display a message box.


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.


The language ID to use.


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.