home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / basic / emed15 / samples / owl / include / cmdialog.h next >
Encoding:
C/C++ Source or Header  |  1994-03-03  |  8.2 KB  |  242 lines

  1. //--------------------------------------------------------
  2. // CMDIALOG.H generated from CMDIALOG.VBX by
  3. // VbxGen 1.0 - Borland International
  4. //--------------------------------------------------------
  5.  
  6. #ifdef __OWL_OWLDEFS_H
  7.   #include <owl\vbxctl.h>
  8. #endif
  9.  
  10. //--------------------------------------------------------
  11. // CommonDialog (VB2)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_CommonDialog_CtlName 0
  16. #define Prop_CommonDialog_Index 1
  17. #define Prop_CommonDialog_Tag 2
  18. #define Prop_CommonDialog_Filename 3
  19. #define Prop_CommonDialog_Filetitle 4
  20. #define Prop_CommonDialog_DialogTitle 5
  21. #define Prop_CommonDialog_Filter 6
  22. #define Prop_CommonDialog_Action 7
  23. #define Prop_CommonDialog_DefaultExt 8
  24. #define Prop_CommonDialog_InitDir 9
  25. #define Prop_CommonDialog_Color 10
  26. #define Prop_CommonDialog_Flags 11
  27. #define Prop_CommonDialog_FilterIndex 13
  28. #define Prop_CommonDialog_FontSize 14
  29. #define Prop_CommonDialog_FontName 15
  30. #define Prop_CommonDialog_FontBold 16
  31. #define Prop_CommonDialog_FontItalic 17
  32. #define Prop_CommonDialog_FontStrikeThru 18
  33. #define Prop_CommonDialog_FontUnderLine 19
  34. #define Prop_CommonDialog_FromPage 20
  35. #define Prop_CommonDialog_ToPage 21
  36. #define Prop_CommonDialog_Min 22
  37. #define Prop_CommonDialog_Max 23
  38. #define Prop_CommonDialog_Copies 24
  39. #define Prop_CommonDialog_hDC 25
  40. #define Prop_CommonDialog_CancelError 26
  41. #define Prop_CommonDialog_MaxFileSize 29
  42. #define Prop_CommonDialog_About 30
  43. #define Prop_CommonDialog_HelpFile 31
  44. #define Prop_CommonDialog_HelpCommand 32
  45. #define Prop_CommonDialog_HelpContext 33
  46. #define Prop_CommonDialog_HelpKey 34
  47. #define Prop_CommonDialog_PrinterDefault 35
  48. #define Prop_CommonDialog_Top 36
  49. #define Prop_CommonDialog_Left 37
  50.  
  51. // events
  52.  
  53. // default form data
  54. //
  55. // Some VBX controls do not operate correctly when created without
  56. // a form file.  This occurs when a program creates a control
  57. // dynamically rather than as part of a dialog resource.  If this
  58. // control exhibits problems in this mode, try creating it with the
  59. // following form data:
  60. //
  61. // For OWL programs:
  62. //
  63. //   TVbxCommonDialog* c = new TVbxCommonDialog(..., sizeof(CommonDialogData), CommonDialogData);
  64. //
  65. // For C/C++ programs:
  66. //
  67. //   HFORMFILE file = VBXCreateFormFile(sizeof(CommonDialogData), CommonDialogData);
  68. //   HCTL c = VBXCreate(..., file);
  69. //   VBXDeleteFormFile(file);
  70. //
  71. // Note that the VBXGEN_DATA or CommonDialog_DATA symbol must be
  72. // defined in order to use the default form data.
  73. //
  74. extern BYTE CommonDialogData[83L];
  75. #if defined(VBXGEN_DATA) || defined(CommonDialog_DATA)
  76.   BYTE CommonDialogData[83L]={
  77.     0x01,0x00,0x00,0x02,0x00,0x03,0x00,0x05,
  78.     0x00,0x06,0x00,0x08,0x00,0x09,0x00,0x0a,
  79.     0x00,0x00,0x00,0x00,0x0b,0x00,0x00,0x00,
  80.     0x00,0x0d,0x00,0x00,0x00,0x00,0x0e,0x08,
  81.     0x00,0x0f,0x00,0x10,0x00,0x00,0x11,0x00,
  82.     0x00,0x12,0x00,0x00,0x13,0x00,0x00,0x14,
  83.     0x00,0x00,0x15,0x00,0x00,0x16,0x00,0x00,
  84.     0x17,0x00,0x00,0x18,0x00,0x00,0x1a,0x00,
  85.     0x00,0x1d,0x00,0x01,0x1f,0x00,0x20,0x00,
  86.     0x00,0x21,0x00,0x00,0x22,0x00,0x23,0xff,
  87.     0xff,0x25,0xff,
  88.   };
  89. #endif
  90.  
  91. #ifdef __OWL_VBXCTL_H
  92.  
  93. // OWL class
  94. class TVbxCommonDialog : public TVbxControl {
  95.   public:
  96.  
  97.     // constructors
  98.     TVbxCommonDialog(TWindow* parent, int id, LPCSTR title,
  99.         int x, int y, int w, int h,
  100.         long initLen=0, void far* initData=0, TModule* module=0) :
  101.       TVbxControl(parent, id, "CMDIALOG.VBX", "CommonDialog",
  102.           title, x, y, w, h, initLen, initData, module) {}
  103.  
  104.     TVbxCommonDialog(TWindow* parent, int resourceId, TModule* module=0) :
  105.         TVbxControl(parent, resourceId, module) {}
  106.  
  107. #if 0
  108.     // event handlers
  109. #endif
  110.  
  111.     // enumerations
  112.     enum { // values for property Action
  113.       Action_0_Nothing,
  114.       Action_1_Open_File,
  115.       Action_2_Save_File,
  116.       Action_3_Color_Dialog,
  117.       Action_4_Font_Dialog,
  118.       Action_5_Printer_Dialog,
  119.       Action_6_Fire_Help,
  120.     };
  121.  
  122.  
  123.     // properties
  124.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  125.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  126.  
  127.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  128.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  129.  
  130.     BOOL GetPropTag(string& v) {return GetProp(2,v);}
  131.     BOOL SetPropTag(string& v) {return SetProp(2,v);}
  132.  
  133.     BOOL GetPropFilename(string& v) {return GetProp(3,v);}
  134.     BOOL SetPropFilename(string& v) {return SetProp(3,v);}
  135.  
  136.     BOOL GetPropFiletitle(string& v) {return GetProp(4,v);}
  137.     BOOL SetPropFiletitle(string& v) {return SetProp(4,v);}
  138.  
  139.     BOOL GetPropDialogTitle(string& v) {return GetProp(5,v);}
  140.     BOOL SetPropDialogTitle(string& v) {return SetProp(5,v);}
  141.  
  142.     BOOL GetPropFilter(string& v) {return GetProp(6,v);}
  143.     BOOL SetPropFilter(string& v) {return SetProp(6,v);}
  144.  
  145.     BOOL GetPropAction(ENUM& v) {return GetProp(7,v);}
  146.     BOOL SetPropAction(ENUM v) {return SetProp(7,v);}
  147.  
  148.     BOOL GetPropDefaultExt(string& v) {return GetProp(8,v);}
  149.     BOOL SetPropDefaultExt(string& v) {return SetProp(8,v);}
  150.  
  151.     BOOL GetPropInitDir(string& v) {return GetProp(9,v);}
  152.     BOOL SetPropInitDir(string& v) {return SetProp(9,v);}
  153.  
  154.     BOOL GetPropColor(COLORREF& v) {return GetProp(10,v);}
  155.     BOOL SetPropColor(COLORREF v) {return SetProp(10,v);}
  156.  
  157.     BOOL GetPropFlags(long& v) {return GetProp(11,v);}
  158.     BOOL SetPropFlags(long v) {return SetProp(11,v);}
  159.  
  160.     BOOL GetPropFilterIndex(long& v) {return GetProp(13,v);}
  161.     BOOL SetPropFilterIndex(long v) {return SetProp(13,v);}
  162.  
  163.     BOOL GetPropFontSize(int& v) {return GetProp(14,v);}
  164.     BOOL SetPropFontSize(int v) {return SetProp(14,v);}
  165.  
  166.     BOOL GetPropFontName(string& v) {return GetProp(15,v);}
  167.     BOOL SetPropFontName(string& v) {return SetProp(15,v);}
  168.  
  169.     BOOL GetPropFontBold(BOOL& v) {return GetProp(16,v);}
  170.     BOOL SetPropFontBold(BOOL v) {return SetProp(16,v);}
  171.  
  172.     BOOL GetPropFontItalic(BOOL& v) {return GetProp(17,v);}
  173.     BOOL SetPropFontItalic(BOOL v) {return SetProp(17,v);}
  174.  
  175.     BOOL GetPropFontStrikeThru(BOOL& v) {return GetProp(18,v);}
  176.     BOOL SetPropFontStrikeThru(BOOL v) {return SetProp(18,v);}
  177.  
  178.     BOOL GetPropFontUnderLine(BOOL& v) {return GetProp(19,v);}
  179.     BOOL SetPropFontUnderLine(BOOL v) {return SetProp(19,v);}
  180.  
  181.     BOOL GetPropFromPage(int& v) {return GetProp(20,v);}
  182.     BOOL SetPropFromPage(int v) {return SetProp(20,v);}
  183.  
  184.     BOOL GetPropToPage(int& v) {return GetProp(21,v);}
  185.     BOOL SetPropToPage(int v) {return SetProp(21,v);}
  186.  
  187.     BOOL GetPropMin(int& v) {return GetProp(22,v);}
  188.     BOOL SetPropMin(int v) {return SetProp(22,v);}
  189.  
  190.     BOOL GetPropMax(int& v) {return GetProp(23,v);}
  191.     BOOL SetPropMax(int v) {return SetProp(23,v);}
  192.  
  193.     BOOL GetPropCopies(int& v) {return GetProp(24,v);}
  194.     BOOL SetPropCopies(int v) {return SetProp(24,v);}
  195.  
  196.     BOOL GetProphDC(int& v) {return GetProp(25,v);}
  197.     BOOL SetProphDC(int v) {return SetProp(25,v);}
  198.  
  199.     BOOL GetPropCancelError(BOOL& v) {return GetProp(26,v);}
  200.     BOOL SetPropCancelError(BOOL v) {return SetProp(26,v);}
  201.  
  202.     BOOL GetPropMaxFileSize(int& v) {return GetProp(29,v);}
  203.     BOOL SetPropMaxFileSize(int v) {return SetProp(29,v);}
  204.  
  205.     BOOL GetPropAbout(string& v) {return GetProp(30,v);}
  206.     BOOL SetPropAbout(string& v) {return SetProp(30,v);}
  207.  
  208.     BOOL GetPropHelpFile(string& v) {return GetProp(31,v);}
  209.     BOOL SetPropHelpFile(string& v) {return SetProp(31,v);}
  210.  
  211.     BOOL GetPropHelpCommand(int& v) {return GetProp(32,v);}
  212.     BOOL SetPropHelpCommand(int v) {return SetProp(32,v);}
  213.  
  214.     BOOL GetPropHelpContext(int& v) {return GetProp(33,v);}
  215.     BOOL SetPropHelpContext(int v) {return SetProp(33,v);}
  216.  
  217.     BOOL GetPropHelpKey(string& v) {return GetProp(34,v);}
  218.     BOOL SetPropHelpKey(string& v) {return SetProp(34,v);}
  219.  
  220.     BOOL GetPropPrinterDefault(BOOL& v) {return GetProp(35,v);}
  221.     BOOL SetPropPrinterDefault(BOOL v) {return SetProp(35,v);}
  222.  
  223.     BOOL GetPropTop(long& v) {return GetProp(36,v);}
  224.     BOOL SetPropTop(long v) {return SetProp(36,v);}
  225.  
  226.     BOOL GetPropLeft(long& v) {return GetProp(37,v);}
  227.     BOOL SetPropLeft(long v) {return SetProp(37,v);}
  228.  
  229. #if 0
  230.   DECLARE_RESPONSE_TABLE(TVbxCommonDialog);
  231. #endif
  232. };
  233.  
  234. #if 0
  235. // OWL response table
  236. DEFINE_RESPONSE_TABLE1(TVbxCommonDialog, TVbxControl)
  237. END_RESPONSE_TABLE;
  238. #endif
  239.  
  240. #endif
  241.  
  242.