00001 #ifndef INFO_EDIT_CLASS
00002 #define INFO_EDIT_CLASS
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "mfc_dll.h"
00024 #include "mfc_extensions.rh"
00025
00026 #include <basis/portable.h>
00027
00028 #include <nsviews/NSFlexDialog.h>
00029
00030 class MFC_EXTENSIONS_CLASS_STYLE info_edit : public CNSFlexDialog
00031 {
00032 public:
00033 info_edit(CWnd *parent = NIL, const char *initial_edit = "",
00034 int max_length = 20, const char *description = "Please enter data",
00035 const char *title = "Information", bool always_on_top = true);
00036
00037 istring text() const;
00038
00039
00040 protected:
00041 enum { IDD = IDD_INFO_EDIT_DIALOG };
00042 CString _text_field;
00043 CString _description_field;
00044
00045 virtual void DoDataExchange(CDataExchange* pDX);
00046 virtual BOOL OnInitDialog();
00047 virtual void OnOK();
00048
00049 DECLARE_MESSAGE_MAP()
00050
00051 private:
00052 istring *_title;
00053 int _max_length;
00054 bool _on_top;
00055 };
00056
00057 #endif
00058