Поделиться через


CWinApp::DoMessageBox

The framework calls this member function to implement a message box for the global function AfxMessageBox.

virtual int DoMessageBox(
   LPCTSTR lpszPrompt,
   UINT nType,
   UINT nIDPrompt 
);

Параметры

  • lpszPrompt
    Address of text in the message box.

  • nType
    The message box style.

  • nIDPrompt
    An index to a Help context string.

Возвращаемое значение

Returns the same values as AfxMessageBox.

Заметки

Do not call this member function to open a message box; use AfxMessageBox instead.

Override this member function to customize your application-wide processing of AfxMessageBox calls.

Требования

Header: afxwin.h

См. также

Основные понятия

CWinApp Class

CWinApp Members

Hierarchy Chart

AfxMessageBox

MessageBox