|
|
Microsoft Windows NT Build 328 10-12-1992
/******************************************************************************\
*
* SPINCUBE.H
*
\******************************************************************************/
#include <custcntl.h>
/******************************************************************************\
* SYMBOLIC CONSTANTS
\******************************************************************************/
#define SPINCUBECLASS "Spincube"
#define SPINCUBEDESCRIPTION "An animated control"
#define SPINCUBEDEFTEXT ":-)"
#define STYLEDEFSTR "0"
#define SPINCUBE_EXTRA 4 // number of extra bytes for spincube class
#define SPIN_EVENT 1 // timer event id to repaint control
#define SPIN_INTERVAL 75 // milliseconds between repaints
#define DID_OK 101 // dialog control id's
#define DID_CANCEL 102
#define DID_EDIT 103
#define DID_TEXT 104
#define GWL_SPINCUBEDATA 0 // offset of control's instance data
/******************************************************************************\
* TYPEDEFs
\******************************************************************************/
typedef struct
{
float xRotAngle;
float yRotAngle;
float zRotAngle;
BOOL inMotion;
} SPINCUBEINFO, *PSPINCUBEINFO;
/******************************************************************************\
* GLOBAL VARIABLES
\******************************************************************************/
HANDLE ghMod; // DLL's module handle
LPCCSTYLE gpccs; // global pointer to a CCSTYLE structure
/******************************************************************************\
* FUNCTION PROTOTYPES
\******************************************************************************/
INT CALLBACK SpincubeSizeToText (DWORD, DWORD, HFONT, LPSTR);
BOOL CALLBACK SpincubeStyle (HWND, LPCCSTYLE);
LRESULT CALLBACK SpincubeWndProc (HWND, UINT, WPARAM, LPARAM);
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.