home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 21.ddi / CIRC1.H_ / CIRC1.bin
Encoding:
Text File  |  1993-02-14  |  4.2 KB  |  113 lines

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