1 // This file is part of the utui library, a terminal UI framework.
3 // Copyright (C) 2006 by Mike Sharov <msharov@users.sourceforge.net>
4 // This file is free software, distributed under the MIT License.
9 #ifndef MSGBOX_H_43442878202627633668B1BA269E4ED1
10 #define MSGBOX_H_43442878202627633668B1BA269E4ED1
14 /// Types of standard message boxes.
24 /// Possible return values from CMessageBox::Run
30 mbrv_Abort
= mbrv_Cancel
,
36 /// \class CMessageBox msgbox.h msgbox.h
37 /// Displays a modal message box.
38 class CMessageBox
: public CDialog
{
40 CMessageBox (const string
& s
= string::empty_string
, EMBType t
= MB_Ok
);
42 virtual void OnKey (wchar_t key
);
43 virtual void OnCommand (cmd_t cmd
);
45 string m_Text
; ///< Message in the box.
46 EMBType m_Type
; ///< Button arrangement.
49 //----------------------------------------------------------------------
51 int MessageBox (const string
& s
, EMBType t
= MB_Ok
);
53 //----------------------------------------------------------------------