|
|
1.1 root 1: /************************************************************************\
2: *
3: * SPINCUBE.H
4: *
5: \************************************************************************/
6:
7: #include <custcntl.h>
8:
9:
10:
11: /************************************************************************\
12: * SYMBOLIC CONSTANTS
13: \************************************************************************/
14:
15: #define SPINCUBECLASS "Spincube"
16: #define SPINCUBEDESCRIPTION "An animated control"
17: #define SPINCUBEDEFTEXT ":-)"
18: #define STYLEDEFSTR "0"
19:
20: #define SPINCUBE_EXTRA 4 /* number of extra bytes for spincube class */
21:
22: #define SPIN_EVENT 1 /* timer event id to repaint control */
23: #define SPIN_INTERVAL 75 /* milliseconds between repaints */
24:
25: #define DID_OK 101 /* dialog control id's */
26: #define DID_CANCEL 102
27: #define DID_EDIT 103
28: #define DID_TEXT 104
29:
30: #define GWL_SPINCUBEDATA 0 /* offset of control's instance data */
31:
32: #define FLOATS_OK
33:
34:
35:
36: /************************************************************************\
37: * TYPEDEFs
38: \************************************************************************/
39:
40: typedef struct
41: { float xRotAngle;
42: float yRotAngle;
43: float zRotAngle;
44: BOOL inMotion;
45: } SPINCUBEINFO, *PSPINCUBEINFO;
46:
47:
48:
49: /************************************************************************\
50: * GLOBAL VARIABLES
51: \************************************************************************/
52:
53: HANDLE hMod; /* DLL's module handle */
54: LPCCSTYLE gpccs; /* global pointer to a CCSTYLE structure */
55:
56:
57: /************************************************************************\
58: * FUNCTION PROTOTYPES
59: \************************************************************************/
60:
61: INT CALLBACK SpincubeSizeToText (DWORD, DWORD, HFONT, LPSTR);
62: BOOL CALLBACK SpincubeStyle (HWND, LPCCSTYLE);
63: LONG SpincubeWndProc (HWND, UINT, UINT, LONG);
64: BOOL SpincubeDlgProc (HWND, UINT, UINT, LONG);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.