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