Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize


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  


Address of text in the message box.


The message box style.


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

© 2015 Microsoft