資源簡介
蜘蛛紙牌,單機(jī)版紙牌游戲,VC++實(shí)現(xiàn)
windows下可運(yùn)行~

代碼片段和文件信息
//?GameOver.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“spider.h“
#include?“GameOver.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CGameOver?dialog
CGameOver::CGameOver(CWnd*?pParent?/*=NULL*/)
:?CDialog(CGameOver::IDD?pParent)
{
//{{AFX_DATA_INIT(CGameOver)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
pView = (CSpiderView?*)pParent;
}
void?CGameOver::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGameOver)
//?NOTE:?the?ClassWizard?will?add?DDX?and?DDV?calls?here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGameOver?CDialog)
//{{AFX_MSG_MAP(CGameOver)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CGameOver?message?handlers
//******************************************************************
//?FUNCTION: - OnOK
//?RETURNS: -
//?PARAMETERS: -
//?COMMENTS: - 當(dāng)對話框點(diǎn)擊確定按妞時(shí),函數(shù)執(zhí)行。給父類發(fā)送消息
//******************************************************************
void?CGameOver::OnOK()?
{
//?TODO:?Add?extra?validation?here
pView->SendMessage(WM_COMMANDWM_OVER_ONOK);
CDialog::OnOK();
}
//******************************************************************
//?FUNCTION: - OnCancel
//?RETURNS: -
//?PARAMETERS: -
//?COMMENTS: - 當(dāng)對話框點(diǎn)擊取消按妞時(shí),函數(shù)執(zhí)行。給父類發(fā)送消息
//******************************************************************
void?CGameOver::OnCancel()?
{
//?TODO:?Add?extra?cleanup?here
pView->SendMessage(WM_COMMANDWM_OVER_ONCANCEL);
CDialog::OnCancel();
}
//******************************************************************
//?FUNCTION: - IsOpen
//?RETURNS: - BOOL?-?當(dāng)對話框存在時(shí)返回TRUE
//?PARAMETERS: -
//?COMMENTS: - 判斷對話框是否已經(jīng)創(chuàng)建
//******************************************************************
BOOL?CGameOver::IsOpen()
{
return(m_hWnd?TRUE:FALSE);
}
//******************************************************************
//?FUNCTION: - IsVisible
//?RETURNS: - BOOL?-?當(dāng)對話框顯示時(shí)返回TRUE
//?PARAMETERS: -
//?COMMENTS: - 判斷對話框是否已經(jīng)顯示
//******************************************************************
BOOL?CGameOver::IsVisible()
{
//如果對話框沒有創(chuàng)建,返回FALSE
if(IsOpen())
return?FALSE;
//得到對話框的信息
WINDOWPLACEMENT?scrn; //對話框在屏幕上狀態(tài)結(jié)構(gòu)體
GetWindowPlacement(&scrn); //取得結(jié)構(gòu)體數(shù)據(jù)
//如果顯示狀態(tài)為SW_SHOW返回TRUE
if(scrn.showCmd ==?SW_SHOW)
return?TRUE;
else
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????3774??2006-11-22?21:13??Spider\Bitmap\103.ico
?????文件??????88198??2006-11-22?20:31??Spider\Bitmap\106.bmp
?????文件???????7990??2006-11-23?22:51??Spider\Bitmap\108.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card1.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card10.bmp
?????文件???????3574??2006-11-24?10:23??Spider\Bitmap\card11.bmp
?????文件???????3550??2006-11-24?10:23??Spider\Bitmap\card12.bmp
?????文件???????3550??2006-11-24?10:23??Spider\Bitmap\card13.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card14.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card15.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card16.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card17.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card18.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card19.bmp
?????文件???????1198??2006-11-24?10:23??Spider\Bitmap\card2.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card20.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card21.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card22.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card23.bmp
?????文件???????3550??2006-11-24?10:23??Spider\Bitmap\card24.bmp
?????文件???????3550??2006-11-24?10:23??Spider\Bitmap\card25.bmp
?????文件???????3550??2006-11-24?10:23??Spider\Bitmap\card26.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card27.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card28.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card29.bmp
?????文件???????1198??2006-11-24?10:23??Spider\Bitmap\card3.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card30.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card31.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card32.bmp
?????文件???????1214??2006-11-24?10:23??Spider\Bitmap\card33.bmp
............此處省略74個(gè)文件信息
評論
共有 條評論