FILEDLG.CPP
上传用户:wtrl82617
上传日期:2007-01-07
资源大小:187k
文件大小:1k
源码类别:

界面编程

开发平台:

DOS

  1. // 1993 (c) ALL RIGHTS RESERVED
  2. // AUTHOR: XuYongYong
  3. /*  filedlg.cpp
  4. only for test
  5. */
  6. #include "filedlg.h"
  7. filedlg_class::filedlg_class(int ID,char *title,int left,int top,int width,int height)
  8. :dialog_class(ID,title,left,top,width,height)
  9. {
  10. acheckbox  =new Tcheckbox (3,"&checkbox",10,5,70,20);
  11. aradio    =new Tradio  (4,"&radio",120,5,100,20 );
  12. hscroll     =new Tscroll (5,"",10,40,100,30,0,100,1);
  13. vscroll =new Tscroll (6,"",150,60,20,80,0,10,4);
  14. tedit  =new Ttedit  (7,"ted&it",10,90,90,30,"Sam",10);
  15. tedit2 =new Ttedit  (8,"2t&edit",200,90,70,30,"0123456789",15) ;
  16. static  char *cc[8]={"11","22","33","44","55","6","7","8"};
  17. listbox =new Tlistbox(9,"H&HJH",200,20,80,50,-1,-1,8,cc);
  18. //  insert_control //
  19. insert_control (acheckbox);
  20. insert_control (aradio);
  21. insert_control (hscroll);
  22. insert_control (vscroll);
  23. insert_control (tedit);
  24. insert_control (tedit2);
  25. insert_control (listbox);
  26. }
  27. filedlg_class::~filedlg_class()
  28. {
  29. }