home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l410 / 1.ddi / CDK / CIRCLE1 / CIRCLE.H$ / CIRCLE.bin
Encoding:
Text File  |  1992-02-13  |  3.7 KB  |  107 lines

  1. //---------------------------------------------------------------------------
  2. // Circle.h
  3. //---------------------------------------------------------------------------
  4.  
  5. //---------------------------------------------------------------------------
  6. // Resource ID's
  7. //---------------------------------------------------------------------------
  8. // Toolbox bitmap resource IDs numbers.
  9. //---------------------------------------------------------------------------
  10. #define IDBMP_CIRCLE        8000
  11. #define IDBMP_CIRCLEDOWN    8001
  12. #define IDBMP_CIRCLEMONO    8003
  13. #define IDBMP_CIRCLEEGA     8006
  14.  
  15.  
  16. //---------------------------------------------------------------------------
  17. // Control Procedure
  18. //---------------------------------------------------------------------------
  19. LONG FAR PASCAL _export CircleCtlProc(HCTL, HWND, USHORT, USHORT, LONG);
  20.  
  21.  
  22. #ifndef RC_INVOKED
  23. //---------------------------------------------------------------------------
  24. // Property list
  25. //---------------------------------------------------------------------------
  26. // Define the consecutive indicies for the properties
  27. //---------------------------------------------------------------------------
  28. #define IPROP_CIRCLE_CTLNAME              0
  29. #define IPROP_CIRCLE_INDEX                1
  30. #define IPROP_CIRCLE_BACKCOLOR            2
  31. #define IPROP_CIRCLE_LEFT                 3
  32. #define IPROP_CIRCLE_TOP                  4
  33. #define IPROP_CIRCLE_WIDTH                5
  34. #define IPROP_CIRCLE_HEIGHT               6
  35. #define IPROP_CIRCLE_VISIBLE              7
  36. #define IPROP_CIRCLE_PARENT               8
  37. #define IPROP_CIRCLE_DRAGMODE             9
  38. #define IPROP_CIRCLE_DRAGICON            10
  39. #define IPROP_CIRCLE_TAG                 11
  40.  
  41. #ifdef CTL_DATA
  42. PPROPINFO Circle_Properties[] =
  43. {
  44.     PPROPINFO_STD_CTLNAME,
  45.     PPROPINFO_STD_INDEX,
  46.     PPROPINFO_STD_BACKCOLOR,
  47.     PPROPINFO_STD_LEFT,
  48.     PPROPINFO_STD_TOP,
  49.     PPROPINFO_STD_WIDTH,
  50.     PPROPINFO_STD_HEIGHT,
  51.     PPROPINFO_STD_VISIBLE,
  52.     PPROPINFO_STD_PARENT,
  53.     PPROPINFO_STD_DRAGMODE,
  54.     PPROPINFO_STD_DRAGICON,
  55.     PPROPINFO_STD_TAG,
  56.     NULL
  57. };
  58. #endif    // CTL_DATA
  59.  
  60.  
  61. //---------------------------------------------------------------------------
  62. // Event list
  63. //---------------------------------------------------------------------------
  64. // Define the consecutive indicies for the events
  65. //---------------------------------------------------------------------------
  66. #define IEVENT_CIRCLE_CLICK          0
  67. #define IEVENT_CIRCLE_DRAGDROP          1
  68. #define IEVENT_CIRCLE_DRAGOVER          2
  69.  
  70. #ifdef CTL_DATA
  71. PEVENTINFO Circle_Events[] =
  72. {
  73.     PEVENTINFO_STD_CLICK,
  74.     PEVENTINFO_STD_DRAGDROP,
  75.     PEVENTINFO_STD_DRAGOVER,
  76.     NULL
  77. };
  78. #endif    // CTL_DATA
  79.  
  80.  
  81. //---------------------------------------------------------------------------
  82. // Model struct
  83. //---------------------------------------------------------------------------
  84. // Define the control model (using the event and property structures).
  85. //---------------------------------------------------------------------------
  86. #ifdef CTL_DATA
  87. MODEL modelCircle =
  88. {
  89.     VB_VERSION,             // VB version being used
  90.     0,                    // MODEL flags
  91.     (PCTLPROC)CircleCtlProc,        // Control procedure
  92.     CS_VREDRAW | CS_HREDRAW,        // Class style
  93.     WS_BORDER,                // Default Windows style
  94.     0,                    // Size of CIRCLE structure
  95.     IDBMP_CIRCLE,            // Palette bitmap ID
  96.     "Circle",                // Default control name
  97.     "Circle1",                // Visual Basic class name
  98.     NULL,                // Parent class name
  99.     Circle_Properties,            // Property information table
  100.     Circle_Events            // Event information table
  101. };
  102. #endif    // CTL_DATA
  103.  
  104. #endif    // RC_INVOKED
  105.  
  106. //---------------------------------------------------------------------------
  107.