home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_2_1994.iso / 00202 / s / disk1 / circ1.h_ / circ1.bin
Text File  |  1993-04-28  |  5KB  |  131 lines

  1. //---------------------------------------------------------------------------
  2. //        Copyright (C) 1991-93, Microsoft Corporation
  3. //
  4. // You have a royalty-free right to use, modify, reproduce and distribute
  5. // the Sample Custom Control Files (and/or any modified version) in any way
  6. // you find useful, provided that you agree that Microsoft has no warranty,
  7. // obligation or liability for any Custom Control File.
  8. //---------------------------------------------------------------------------
  9. // Circ1.h
  10. //---------------------------------------------------------------------------
  11.  
  12. //---------------------------------------------------------------------------
  13. // Resource Information
  14. //---------------------------------------------------------------------------
  15. // Toolbox bitmap resource IDs numbers.
  16. //---------------------------------------------------------------------------
  17. #define IDBMP_CIRCLE        8000
  18. #define IDBMP_CIRCLEDOWN    8001
  19. #define IDBMP_CIRCLEMONO    8003
  20. #define IDBMP_CIRCLEEGA     8006
  21.  
  22.  
  23. //---------------------------------------------------------------------------
  24. // Change these for each new VBX file
  25. //---------------------------------------------------------------------------
  26. #define VBX_COMPANYNAME        "Microsoft Corporation\0"
  27. #define VBX_FILEDESCRIPTION       "Visual Basic Pix Custom Control Example\0"
  28. #define VBX_INTERNALNAME       "PIX\0"
  29. #define VBX_LEGALCOPYRIGHT       "Copyright \251 Microsoft Corp. 1991-93\0"
  30. #define VBX_LEGALTRADEMARKS       "Microsoft\256 is a registered trademark of Microsoft Corporation. Visual Basic\231 is a trademark of Microsoft Corporation. Windows\231 is a trademark of Microsoft Corporation.\0"
  31. #define VBX_ORIGINALFILENAME       "PIX.VBX\0"
  32. #define VBX_PRODUCTNAME        "Microsoft\256 Visual Basic\231 for Windows\231\0"
  33.  
  34. //---------------------------------------------------------------------------
  35. // Update these fields for each build.
  36. //---------------------------------------------------------------------------
  37. #define VBX_VERSION            3,00,0,00
  38. #define VBX_VERSION_STR        "3.00.000\0"
  39.  
  40.  
  41. #ifndef RC_INVOKED
  42. //---------------------------------------------------------------------------
  43. // Control Procedure
  44. //---------------------------------------------------------------------------
  45. LONG FAR PASCAL _export CircleCtlProc(HCTL, HWND, USHORT, USHORT, LONG);
  46.  
  47.  
  48. //---------------------------------------------------------------------------
  49. // Property list
  50. //---------------------------------------------------------------------------
  51. // Define the consecutive indicies for the properties
  52. //---------------------------------------------------------------------------
  53. #define IPROP_CIRCLE_CTLNAME              0
  54. #define IPROP_CIRCLE_INDEX                1
  55. #define IPROP_CIRCLE_BACKCOLOR            2
  56. #define IPROP_CIRCLE_LEFT                 3
  57. #define IPROP_CIRCLE_TOP                  4
  58. #define IPROP_CIRCLE_WIDTH                5
  59. #define IPROP_CIRCLE_HEIGHT               6
  60. #define IPROP_CIRCLE_VISIBLE              7
  61. #define IPROP_CIRCLE_PARENT               8
  62. #define IPROP_CIRCLE_DRAGMODE             9
  63. #define IPROP_CIRCLE_DRAGICON            10
  64. #define IPROP_CIRCLE_TAG                 11
  65. #define IPROP_CIRCLE_HWND         12
  66.  
  67. PPROPINFO Circle_Properties[] =
  68.     {
  69.     PPROPINFO_STD_CTLNAME,
  70.     PPROPINFO_STD_INDEX,
  71.     PPROPINFO_STD_BACKCOLOR,
  72.     PPROPINFO_STD_LEFT,
  73.     PPROPINFO_STD_TOP,
  74.     PPROPINFO_STD_WIDTH,
  75.     PPROPINFO_STD_HEIGHT,
  76.     PPROPINFO_STD_VISIBLE,
  77.     PPROPINFO_STD_PARENT,
  78.     PPROPINFO_STD_DRAGMODE,
  79.     PPROPINFO_STD_DRAGICON,
  80.     PPROPINFO_STD_TAG,
  81.     PPROPINFO_STD_HWND,
  82.     NULL
  83.     };
  84.  
  85.  
  86. //---------------------------------------------------------------------------
  87. // Event list
  88. //---------------------------------------------------------------------------
  89. // Define the consecutive indicies for the events
  90. //---------------------------------------------------------------------------
  91. #define IEVENT_CIRCLE_CLICK          0
  92. #define IEVENT_CIRCLE_DRAGDROP          1
  93. #define IEVENT_CIRCLE_DRAGOVER          2
  94.  
  95. PEVENTINFO Circle_Events[] =
  96.     {
  97.     PEVENTINFO_STD_CLICK,
  98.     PEVENTINFO_STD_DRAGDROP,
  99.     PEVENTINFO_STD_DRAGOVER,
  100.     NULL
  101.     };
  102.  
  103.  
  104. //---------------------------------------------------------------------------
  105. // Model struct
  106. //---------------------------------------------------------------------------
  107. // Define the control model (using the event and property structures).
  108. //---------------------------------------------------------------------------
  109. MODEL modelCircle =
  110.     {
  111.     VB_VERSION,             // VB version being used
  112.     0,                    // MODEL flags
  113.     (PCTLPROC)CircleCtlProc,        // Control procedure
  114.     CS_VREDRAW | CS_HREDRAW,        // Class style
  115.     WS_BORDER,                // Default Windows style
  116.     0,                    // Size of CIRCLE structure
  117.     IDBMP_CIRCLE,            // Palette bitmap ID
  118.     "Circle",                // Default control name
  119.     "CIRC1",                // Visual Basic class name
  120.     NULL,                // Parent class name
  121.     Circle_Properties,            // Property information table
  122.     Circle_Events,            // Event information table
  123.     IPROP_CIRCLE_BACKCOLOR,        // Default property
  124.     IEVENT_CIRCLE_CLICK,        // Default event
  125.     -1                    // Property representing value of ctl
  126.     };
  127.  
  128. #endif    // RC_INVOKED
  129.  
  130. //---------------------------------------------------------------------------
  131.