EDITDLG.CPP
资源名称:dos_gui.zip [点击查看]
上传用户:wtrl82617
上传日期:2007-01-07
资源大小:187k
文件大小:0k
源码类别:
界面编程
开发平台:
DOS
- #include "editdlg.h"
- //#include <string.h>
- editdlg_class::editdlg_class(int ID,char *title,int left,int top,int width,int height,
- char * old_content )
- :dialog_class(ID,title,left,top,width,height)
- {
- content =new Ttedit(3,"",20,20,width -40,25, old_content );
- buf =old_content;
- insert_control (content );
- canclose =FALSE;
- }
- BOOL editdlg_class::func_canclose()
- {
- if ( strlen (content->text) == 0 ) return FALSE;
- else {
- strcpy (buf ,content->text );
- return TRUE;
- }
- }