home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
wpj_mag
/
wpjv1n8.zip
/
GDI.ZIP
/
INVID.ZIP
/
INVID.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
939b
|
50 lines
/*
This is used in the function WndProc() to find
the size of the array messages[].
*/
#define dim(x) (sizeof(x) / sizeof(x[0]))
// our window size
#define WINDOW_WIDTH 400
#define WINDOW_HEIGHT 400
// Function Prototypes
long FAR PASCAL WndProc (HWND, WORD, WORD, LONG);
BOOL InitApplication(HANDLE hInstance);
BOOL InitInstance(HANDLE hInstance, WORD nCmdShow);
long DoKeydown(HWND hWnd, WORD wMsg, WORD wParam, LONG lParam);
long DoKeyup(HWND hWnd, WORD wMsg, WORD wParam, LONG lParam);
long DoCreate();
long DoDestroy();
void DoInv(void);
void BaseInit(void);
void BaseAnimation (void);
void DrawBitmap (HBITMAP hBitmap, int xStart, int yStart);
// Global variables
char szAppName [] = "Invid";
HANDLE hInst;
HWND hWnd;
int AnimeStep = 1;
BOOL fRightKeyState = 0,
fLeftKeyState = 0;
struct BaseStruct {
short x ;
short y ;
HBITMAP Bmp ;
};
struct BaseStruct Base;