資源簡介
連連看是以VC6.0為平臺,用標準C++語言、基于微軟MFC類庫完成的一個簡單的、模仿騰訊連連看的軟件。整套軟件由客戶端程序和服務器端程序構成,客戶端運行在玩家的個人電腦上,所有操作均通過網絡通訊向服務器發送請求,并接受服務器端程序處理的結果。客戶端主要處理游戲界面顯示,主要包括:玩家注冊、游戲登錄、大廳瀏覽、參與游戲、游戲旁觀、各玩家游戲縮略圖以及查看玩家游戲積分等功能。服務器端處理客戶端的各種業務請求,主要包括:用戶注冊、玩家登陸、進入房間、入座、準備、開始游戲等功能。

代碼片段和文件信息
//?GameIntroduction.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“LLKCLI.h“
#include?“GameIntroduction.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?GameIntroduction?dialog
GameIntroduction::GameIntroduction(CWnd*?pParent?/*=NULL*/)
:?CDialog(GameIntroduction::IDD?pParent)
{
//{{AFX_DATA_INIT(GameIntroduction)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}
void?GameIntroduction::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(GameIntroduction)
//?NOTE:?the?ClassWizard?will?add?DDX?and?DDV?calls?here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(GameIntroduction?CDialog)
//{{AFX_MSG_MAP(GameIntroduction)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?GameIntroduction?message?handlers
BOOL?GameIntroduction::OnInitDialog()?
{
CDialog::OnInitDialog();
//?TODO:?Add?extra?initialization?here
//設置窗體大小
CTabCtrl?*tab?=?(CTabCtrl*)GetParent();
CRect?rectcr;
tab->GetClientRect(&rect);
tab->GetItemRect(0&cr);
rect.top?+=?cr.Height();
MoveWindow(&rect);
????
????//游戲說明位圖
m_introduction.LoadBitmap(IDB_GAME_INTRODUCTION);
m_introduction.GetBitmap(&m_infoIntroduction);
CDC?*pDC?=?GetDC();
m_dcMem.CreateCompatibleDC(pDC);
m_dcMem.Selectobject(&m_introduction);
ReleaseDC(pDC);
return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
??????????????//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}
void?GameIntroduction::OnPaint()?
{
CPaintDC?dc(this);?//?device?context?for?painting
//?TODO:?Add?your?message?handler?code?here
//在彈出對話框中畫圖
dc.BitBlt(00m_infoIntroduction.bmWidthm_infoIntroduction.bmHeight&m_dcMem00SRCCOPY);
//?Do?not?call?CDialog::OnPaint()?for?painting?messages
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\1-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\1-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\10-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\10-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\100-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\100-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\101-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\101-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\102-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\102-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\103-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\103-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\104-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\104-2.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\105-1.bmp
?????文件???????2100??2008-12-25?19:07??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\105-2.bmp
?????文件???????2104??2009-01-08?15:24??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\106-1.bmp
?????文件???????1980??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\106-2.bmp
?????文件???????2104??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\107-1.bmp
?????文件???????2056??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\107-2.bmp
?????文件???????2100??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\108-1.bmp
?????文件???????1960??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\108-2.bmp
?????文件???????2104??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\109-1.bmp
?????文件???????1928??2009-01-08?15:25??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\109-2.bmp
?????文件???????2100??2008-12-25?19:06??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\11-1.bmp
?????文件???????2100??2008-12-25?19:06??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\11-2.bmp
?????文件???????2104??2009-01-08?15:24??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\110-1.bmp
?????文件???????3128??2009-01-08?15:24??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\110-2.bmp
?????文件???????2104??2009-01-08?15:24??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\111-1.bmp
?????文件???????1996??2009-01-08?15:24??連連看(項目完整版)\1.可執行文件\1.客戶端\Face\111-2.bmp
............此處省略825個文件信息
評論
共有 條評論