91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5.22MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-16
  • 語言: 其他
  • 標簽: VC++??五子棋??

資源簡介

很好很強大的五子棋算法

資源截圖

代碼片段和文件信息

//?About.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“ms5.h“
#include?“About.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CAbout?dialog


CAbout::CAbout(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAbout::IDD?pParent)
{
//{{AFX_DATA_INIT(CAbout)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
isIn?=?false;
}


void?CAbout::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAbout)
//?NOTE:?the?ClassWizard?will?add?DDX?and?DDV?calls?here
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAbout?CDialog)
//{{AFX_MSG_MAP(CAbout)
ON_WM_LBUTTONDOWN()
ON_WM_CTLCOLOR()
ON_WM_SETCURSOR()
ON_WM_MOUSEMOVE()
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAbout?message?handlers

BOOL?CAbout::OnInitDialog()?
{
CDialog::OnInitDialog();
int?ij;
CClientDC?dc(this);
CBitmap?bmp;CDC?dcmem;BITMAP?bm;
bmp.LoadBitmap(“bk“);
m_brush?=?CreatePatternBrush((HBITMAP)bmp);
Getobject(bmpsizeof(BITMAP)(LPVOID)&bm);
dcmem.CreateCompatibleDC(&dc);
dcmem.Selectobject(&bmp);
dc.BitBlt(00bm.bmWidthbm.bmHeight&dcmem00SRCCOPY);
CRgn?myrgntemprgn;
myrgn.CreateRectRgn(00bm.bmWidthbm.bmHeight);
COLORREF?color=dcmem.GetPixel(00);
for(i=0;i for(j=0;j {
if?(dcmem.GetPixel(ij)==color)
{
temprgn.CreateRectRgn(iji+1j+1);
myrgn.CombineRgn(&myrgn&temprgnRGN_XOR);
temprgn.Deleteobject();
}
}
SetWindowRgn(myrgnTRUE);
bmp.Deleteobject();

return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}

void?CAbout::OnLButtonDown(UINT?nFlags?CPoint?point)?
{
SendMessage(WM_SYSCOMMAND0xf0120);
CRect?mailrect;
CWnd?*pStatic=GetDlgItem(IDC_MAILSTATIC);
pStatic->GetWindowRect?(mailrect);
ScreenToClient(mailrect);
if?(mailrect.PtInRect(point))
{
ShellExecute(m_hWndNULL“mailto:zhangpo03@mails.tsinghua.edu.cn“NULLNULLSW_SHOWMAXIMIZED);
}
CDialog::OnLButtonDown(nFlags?point);
}

HBRUSH?CAbout::OnCtlColor(CDC*?pDC?CWnd*?pWnd?UINT?nCtlColor)?
{
HBRUSH?hbr?=?CDialog::OnCtlColor(pDC?pWnd?nCtlColor);
if?(nCtlColor==CTLCOLOR_DLG)
return?m_brush;
if?(nCtlColor==CTLCOLOR_STATIC)?
{
if?(!pWnd->IsKindOf(?RUNTIME_CLASS(?CEdit?)))
{
pDC->SetBkMode(TRANSPARENT);
return?m_brush;
}
}
return?hbr;
}

BOOL?CAbout::OnSetCursor(CWnd*?pWnd?UINT?nHitTest?UINT?message)?
{
CRect?rcButton;
CPoint?ptCursor;
CWnd?*pStatic=GetDlgItem(IDC_MAILSTATIC);
pStatic->GetWindowRect?(rcButton);
GetCursorPos(&ptCursor);
if?(rcButton.PtInRect?(ptCursor))
{
CWinApp?*pApp=AfxGetApp();
HICON?hIconBang=pApp->Loa

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????4556??2004-02-08?20:58??五子棋源代碼1-+VC_C++源碼\About.cpp

?????文件???????1494??2004-02-08?20:53??五子棋源代碼1-+VC_C++源碼\About.h

?????文件???????7542??2000-05-22?10:57??五子棋源代碼1-+VC_C++源碼\AutoFont.cpp

?????文件???????2340??1999-11-30?08:48??五子棋源代碼1-+VC_C++源碼\AutoFont.h

?????文件???????3703??2004-01-27?13:55??五子棋源代碼1-+VC_C++源碼\CVSCDlg.cpp

?????文件???????1642??2004-01-27?13:55??五子棋源代碼1-+VC_C++源碼\CVSCDlg.h

?????文件?????235160??2004-02-13?10:58??五子棋源代碼1-+VC_C++源碼\FiveStoneProcess.cpp

?????文件???????9601??2004-02-13?10:53??五子棋源代碼1-+VC_C++源碼\FiveStoneProcess.h

?????文件???????4275??2004-01-31?22:04??五子棋源代碼1-+VC_C++源碼\GradientProgressCtrl.cpp

?????文件???????2147??2002-04-24?14:50??五子棋源代碼1-+VC_C++源碼\GradientProgressCtrl.h

?????文件???????1262??2004-01-31?22:03??五子棋源代碼1-+VC_C++源碼\MemDC.cpp

?????文件????????681??2002-04-09?13:10??五子棋源代碼1-+VC_C++源碼\MemDC.h

?????文件????1499340??2008-06-08?11:51??五子棋源代碼1-+VC_C++源碼\ms5.aps

?????文件???????4129??2008-06-09?22:34??五子棋源代碼1-+VC_C++源碼\ms5.clw

?????文件???????2021??2003-12-22?13:12??五子棋源代碼1-+VC_C++源碼\ms5.cpp

?????文件???????6390??2004-02-08?21:28??五子棋源代碼1-+VC_C++源碼\ms5.dsp

?????文件????????529??2003-12-22?13:12??五子棋源代碼1-+VC_C++源碼\ms5.dsw

?????文件???????1291??2003-12-22?13:12??五子棋源代碼1-+VC_C++源碼\ms5.h

?????文件?????295936??2008-06-09?22:34??五子棋源代碼1-+VC_C++源碼\ms5.ncb

?????文件??????52736??2008-06-09?22:34??五子棋源代碼1-+VC_C++源碼\ms5.opt

?????文件????????242??2008-06-08?11:51??五子棋源代碼1-+VC_C++源碼\ms5.plg

?????文件??????13717??2004-02-13?11:41??五子棋源代碼1-+VC_C++源碼\ms5.rc

?????文件??????57693??2004-02-08?21:27??五子棋源代碼1-+VC_C++源碼\ms5Dlg.cpp

?????文件???????3991??2004-02-08?21:05??五子棋源代碼1-+VC_C++源碼\ms5Dlg.h

?????文件??????20845??2008-06-07?23:22??五子棋源代碼1-+VC_C++源碼\Release\About.obj

?????文件??????????0??2008-06-07?23:22??五子棋源代碼1-+VC_C++源碼\Release\About.sbr

?????文件??????25211??2008-06-07?23:22??五子棋源代碼1-+VC_C++源碼\Release\AutoFont.obj

?????文件??????????0??2008-06-07?23:22??五子棋源代碼1-+VC_C++源碼\Release\AutoFont.sbr

?????文件??????21912??2008-06-07?23:22??五子棋源代碼1-+VC_C++源碼\Release\CVSCDlg.obj

?????文件??????????0??2008-06-07?23:22??五子棋源代碼1-+VC_C++源碼\Release\CVSCDlg.sbr

............此處省略53個文件信息

評論

共有 條評論