www.pudn.com > goodchessGame.zip > JokerDialog.cpp
// JokerDialog.cpp : implementation file
//
#include "stdafx.h"
#include "FiveInOne.h"
#include "JokerDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CJokerDialog dialog
IMPLEMENT_DYNAMIC(CJokerDialog, CDialog)
CJokerDialog::CJokerDialog(CWnd* pParent /*=NULL*/)
: CDialog(CJokerDialog::IDD, pParent)
{
}
CJokerDialog::~CJokerDialog()
{
}
void CJokerDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CJokerDialog, CDialog)
ON_WM_CLOSE()
END_MESSAGE_MAP()
// CJokerDialog message handlers
void CJokerDialog::SetJoker(int Index)
{
m_Card.SetBitmapIndex(Index);
}
void CJokerDialog::OnClose()
{
// TODO: Add your message handler code here and/or call default
m_Card.DestroyWindow();
CDialog::OnClose();
}
BOOL CJokerDialog::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_Card.Creation(this, m_Card.GetBitmapIndex(), TRUE, TRUE);
m_Card.CenterWindow();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}