home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- // Circle.h
- //---------------------------------------------------------------------------
-
- //---------------------------------------------------------------------------
- // Resource ID's
- //---------------------------------------------------------------------------
- // Toolbox bitmap resource IDs numbers.
- //---------------------------------------------------------------------------
- #define IDBMP_CIRCLE 8000
- #define IDBMP_CIRCLEDOWN 8001
- #define IDBMP_CIRCLEMONO 8003
- #define IDBMP_CIRCLEEGA 8006
-
-
- //---------------------------------------------------------------------------
- // Control Procedure
- //---------------------------------------------------------------------------
- LONG FAR PASCAL _export CircleCtlProc(HCTL, HWND, USHORT, USHORT, LONG);
-
-
- #ifndef RC_INVOKED
- //---------------------------------------------------------------------------
- // Property list
- //---------------------------------------------------------------------------
- // Define the consecutive indicies for the properties
- //---------------------------------------------------------------------------
- #define IPROP_CIRCLE_CTLNAME 0
- #define IPROP_CIRCLE_INDEX 1
- #define IPROP_CIRCLE_BACKCOLOR 2
- #define IPROP_CIRCLE_LEFT 3
- #define IPROP_CIRCLE_TOP 4
- #define IPROP_CIRCLE_WIDTH 5
- #define IPROP_CIRCLE_HEIGHT 6
- #define IPROP_CIRCLE_VISIBLE 7
- #define IPROP_CIRCLE_PARENT 8
- #define IPROP_CIRCLE_DRAGMODE 9
- #define IPROP_CIRCLE_DRAGICON 10
- #define IPROP_CIRCLE_TAG 11
-
- #ifdef CTL_DATA
- PPROPINFO Circle_Properties[] =
- {
- PPROPINFO_STD_CTLNAME,
- PPROPINFO_STD_INDEX,
- PPROPINFO_STD_BACKCOLOR,
- PPROPINFO_STD_LEFT,
- PPROPINFO_STD_TOP,
- PPROPINFO_STD_WIDTH,
- PPROPINFO_STD_HEIGHT,
- PPROPINFO_STD_VISIBLE,
- PPROPINFO_STD_PARENT,
- PPROPINFO_STD_DRAGMODE,
- PPROPINFO_STD_DRAGICON,
- PPROPINFO_STD_TAG,
- NULL
- };
- #endif // CTL_DATA
-
-
- //---------------------------------------------------------------------------
- // Event list
- //---------------------------------------------------------------------------
- // Define the consecutive indicies for the events
- //---------------------------------------------------------------------------
- #define IEVENT_CIRCLE_CLICK 0
- #define IEVENT_CIRCLE_DRAGDROP 1
- #define IEVENT_CIRCLE_DRAGOVER 2
-
- #ifdef CTL_DATA
- PEVENTINFO Circle_Events[] =
- {
- PEVENTINFO_STD_CLICK,
- PEVENTINFO_STD_DRAGDROP,
- PEVENTINFO_STD_DRAGOVER,
- NULL
- };
- #endif // CTL_DATA
-
-
- //---------------------------------------------------------------------------
- // Model struct
- //---------------------------------------------------------------------------
- // Define the control model (using the event and property structures).
- //---------------------------------------------------------------------------
- #ifdef CTL_DATA
- MODEL modelCircle =
- {
- VB_VERSION, // VB version being used
- 0, // MODEL flags
- (PCTLPROC)CircleCtlProc, // Control procedure
- CS_VREDRAW | CS_HREDRAW, // Class style
- WS_BORDER, // Default Windows style
- 0, // Size of CIRCLE structure
- IDBMP_CIRCLE, // Palette bitmap ID
- "Circle", // Default control name
- "Circle1", // Visual Basic class name
- NULL, // Parent class name
- Circle_Properties, // Property information table
- Circle_Events // Event information table
- };
- #endif // CTL_DATA
-
- #endif // RC_INVOKED
-
- //---------------------------------------------------------------------------
-