00001 00042 #ifndef INC_MGUI_DLGTEXTV_H 00043 #define INC_MGUI_DLGTEXTV_H 00044 00045 #ifndef INC_MGUI_DLGSHELL_H 00046 #include <mgui/dlgshell.h> 00047 #endif 00048 00049 #ifndef INC_MGUI_EDIT_H 00050 #include <mgui/edit.h> 00051 #endif 00052 00053 namespace MGUI { 00054 //=================================================================================================================== 00056 class DLG_TEXTVIEW : public DLGSHELL { 00057 public: 00058 00059 enum STYLE { 00060 STYLE_Normal = 0x00000000, 00061 STYLE_UseFixedWidthFont = 0x00000001 00062 }; 00063 00065 DLG_TEXTVIEW ( 00066 const MISTRING& title, 00067 HELPID HelpID = HELPID__None, 00068 STYLE style = STYLE_Normal 00069 ); 00070 00072 virtual ~DLG_TEXTVIEW (); 00073 00075 void SetText ( 00076 const MISTRING& string 00077 ); 00078 00080 void SetText ( 00081 const MIUNICODE *string 00082 ); 00083 00084 private: 00085 #ifndef GENERATING_DOXYGEN_OUTPUT 00086 MISTRING m_TextStr; 00087 CTRL_EDIT_TEXT m_TextCtrl; 00088 STYLE m_style; 00089 00091 virtual ERRVALUE v_CreateContent (); 00092 virtual void v_OnOK (); 00093 #endif // GENERATING_DOXYGEN_OUTPUT 00094 }; 00095 00096 #ifndef GENERATING_DOXYGEN_OUTPUT 00097 DEFINE_ENUM_OP_BITWISE(DLG_TEXTVIEW::STYLE) 00098 #endif 00099 00100 //=================================================================================================================== 00101 } // End namespace MGUI 00102 00103 #endif // INC_MGUI_DLGTEXTV_H
1.6.1