home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Direkt: Spezial 1
/
CDD_SPIELE_.ISO
/
wingames
/
pyramid
/
cardwin.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-18
|
3KB
|
100 lines
//-------------------------------------------------------------------
// PROGRAM: CARDWIN.H
//
// DESCRIPTION: Header file for CARDWIN.CPP
//
// Copyright (c) 1993, CYSoft Inc.
//
// NOTE: The program design is kinda hacked because
// this is my first attempt at creating a
// fully functional Windows program using
// OWL and C++.
//
// Any suggestions on making the program better,
// specially the DealCards module which is
// painfully slow, would be greatly appreciated.
//
// Compuserve ID 72672,1567
//-------------------------------------------------------------------
#include <owl.h>
//--------------------------------
// Constants
//--------------------------------
#define INDECK 1
#define INPLAY 2
#define INWASTE 3
#define INDISCARD 4
#define INPYRAMID 5
#define FACEDN 53
#define CARDWIDTH 71
#define CARDHEIGHT 96
#define DECK_X 34
#define DECK_Y 320
#define PLAY_X 142
#define PLAY_Y 320
#define WASTE_X 250
#define WASTE_Y 320
#define DISCARD_X 495
#define DISCARD_Y 320
//-------------------------------------------------------------------
// CLASS: TCardWin
//
// DESCRIPTION: Class declaration
//-------------------------------------------------------------------
_CLASSDEF(TCardWin)
class TCardWin : public TWindow
{
public:
//------------------------
// Variables
//------------------------
int xPos,
yPos,
where,
bitNum,
deckIndex,
cardValue,
dependentCard;
BOOL faceUp,
nextCard,
cardTagged;
HINSTANCE appInstance;
PTWindowsObject myParent;
//------------------------
// Functions
//------------------------
int WhichDependent(int deckIdx);
TCardWin(PTWindowsObject AParent, LPSTR ATitle, int Idx,
int X, int Y, HINSTANCE Instance);
virtual void GetWindowClass(WNDCLASS& AWndClass);
virtual void Paint(HDC hDC, PAINTSTRUCT _FAR &);
virtual void WMDestroy(RTMessage Msg)
= [WM_FIRST + WM_DESTROY];
virtual void WMLButtonDown(RTMessage)
= [WM_FIRST + WM_LBUTTONDOWN];
};