home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
WTJ9403.ZIP
/
POKER
/
CARDBACK.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-05
|
3KB
|
146 lines
// cardback.cpp : implementation file
//
#include "stdafx.h"
#include "poker.h"
#include "cardback.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCardBack dialog
CCardBack::CCardBack(CWnd* pParent /*=NULL*/)
: CDialog(CCardBack::IDD, pParent)
{
//{{AFX_DATA_INIT(CCardBack)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CCardBack::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCardBack)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCardBack, CDialog)
//{{AFX_MSG_MAP(CCardBack)
ON_WM_CREATE()
ON_BN_CLICKED(ID_BEACH, OnClickedBeach)
ON_BN_CLICKED(ID_CARD_HAND, OnClickedCardHand)
ON_BN_CLICKED(ID_CASTLE, OnClickedCastle)
ON_BN_CLICKED(ID_FISH_BLUE, OnClickedFishBlue)
ON_BN_CLICKED(ID_FISH_CYAN, OnClickedFishCyan)
ON_BN_CLICKED(ID_IVY_BLACK, OnClickedIvyBlack)
ON_BN_CLICKED(ID_IVY_BLUE, OnClickedIvyBlue)
ON_BN_CLICKED(ID_PLAID, OnClickedPlaid)
ON_BN_CLICKED(ID_ROBOT, OnClickedRobot)
ON_BN_CLICKED(ID_ROSES, OnClickedRoses)
ON_BN_CLICKED(ID_SHELLS, OnClickedShells)
ON_BN_CLICKED(ID_WEAVE, OnClickedWeave)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCardBack message handlers
int CCardBack::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
return 0;
}
BOOL CCardBack::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
SetDefID(m_nCardBack);
// return TRUE; // return TRUE unless you set the focus to a control
return(FALSE);
}
void CCardBack::OnClickedBeach()
{
m_nCardBack = ID_BEACH;
EndDialog(TRUE);
}
void CCardBack::OnClickedCardHand()
{
m_nCardBack = ID_CARD_HAND;
EndDialog(TRUE);
}
void CCardBack::OnClickedCastle()
{
m_nCardBack = ID_CASTLE;
EndDialog(TRUE);
}
void CCardBack::OnClickedFishBlue()
{
m_nCardBack = ID_FISH_BLUE;
EndDialog(TRUE);
}
void CCardBack::OnClickedFishCyan()
{
m_nCardBack = ID_FISH_CYAN;
EndDialog(TRUE);
}
void CCardBack::OnClickedIvyBlack()
{
m_nCardBack = ID_IVY_BLACK;
EndDialog(TRUE);
}
void CCardBack::OnClickedIvyBlue()
{
m_nCardBack = ID_IVY_BLUE;
EndDialog(TRUE);
}
void CCardBack::OnClickedPlaid()
{
m_nCardBack = ID_PLAID;
EndDialog(TRUE);
}
void CCardBack::OnClickedRobot()
{
m_nCardBack = ID_ROBOT;
EndDialog(TRUE);
}
void CCardBack::OnClickedRoses()
{
m_nCardBack = ID_ROSES;
EndDialog(TRUE);
}
void CCardBack::OnClickedShells()
{
m_nCardBack = ID_SHELLS;
EndDialog(TRUE);
}
void CCardBack::OnClickedWeave()
{
m_nCardBack = ID_WEAVE;
EndDialog(TRUE);
}