[Win32 API] MessageBox Function

Display a modal dialog box that contain a system icon, a set of buttons, and a brief application-specific message, such as status or error information, The message box returns an integer value that indicates which button the user clicked.

Syntax


int WINAPI MessageBox(
  __in_opt  HWND hWnd,
  __in_opt  LPCTSTR lpText,
  __in_opt  LPCTSTR lpCaption,
  __in      UINT uType
);

Parameters

  • hWnd : A handle to the owner window of the message box to be created.If this parameter is NULL, the message box has no owner window.
  • lpText : The message to be displayed. If the string consist of more than one line, you can separate the lines using a carriage return and/or linefeed character between each line.
  • lpCaption : the dialog box title. If this parameter is NULL , the default title is Error.
  • uType: The contents and behavior of the dialog box. This parameter can be a combination of flags from the following group flags.

댓글

이 블로그의 인기 게시물

[Win32 API] WINAPI - 함수호출규약

JAVA Frame Icon setting

JAVA Spinner