当前位置: 首页 > news >正文

企业网站建设 租用服务器深圳国外网站制作公司

企业网站建设 租用服务器,深圳国外网站制作公司,怎么提高百度关键词排名,wordpress登录于未登录菜单一、游戏说明如下#xff1a; 打中老鼠加一分#xff0c;当得分值小于10分时#xff0c;老鼠每0.8秒出现一次#xff0c;当得分值大于等于10分并且小于50分时#xff0c;老鼠每0.6秒出现一次。当得分值大于等于50分时#xff0c;老鼠每0.4秒出现一次。这个游戏是参考别人…一、游戏说明如下 打中老鼠加一分当得分值小于10分时老鼠每0.8秒出现一次当得分值大于等于10分并且小于50分时老鼠每0.6秒出现一次。当得分值大于等于50分时老鼠每0.4秒出现一次。这个游戏是参考别人的部分代码并在其基础上改进了一些。具体代码如下 1、 // dadishuDlg.h : header file //#if !defined(AFX_DADISHUDLG_H__40135455_30B1_45C8_B123_A78832063FD4__INCLUDED_) #define AFX_DADISHUDLG_H__40135455_30B1_45C8_B123_A78832063FD4__INCLUDED_#if _MSC_VER 1000 #pragma once #endif // _MSC_VER 1000/ // CDadishuDlg dialogclass CDadishuDlg : public CDialog { // Construction public:CTime t;CButton * pMouse[12];CString strTime;int nowMouse;int gameScore;int hour,minute,second;CDadishuDlg(CWnd* pParent NULL); // standard constructor// Dialog Data//{{AFX_DATA(CDadishuDlg)enum { IDD IDD_DADISHU_DIALOG };// NOTE: the ClassWizard will add data members here//}}AFX_DATA// ClassWizard generated virtual function overrides//{{AFX_VIRTUAL(CDadishuDlg)protected:virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV supportvirtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);//}}AFX_VIRTUAL// Implementation protected:HICON m_hIcon;// Generated message map functions//{{AFX_MSG(CDadishuDlg)virtual BOOL OnInitDialog();afx_msg void OnSysCommand(UINT nID, LPARAM lParam);afx_msg void OnPaint();afx_msg HCURSOR OnQueryDragIcon();afx_msg void OnContinue();afx_msg void OnPause();afx_msg void OnTimer(UINT nIDEvent);afx_msg void OnStart();afx_msg void OnCancel();//}}AFX_MSGDECLARE_MESSAGE_MAP() };//{{AFX_INSERT_LOCATION}} // Microsoft Visual C will insert additional declarations immediately before the previous line.#endif // !defined(AFX_DADISHUDLG_H__40135455_30B1_45C8_B123_A78832063FD4__INCLUDED_)2、 // dadishuDlg.cpp : implementation file //#include stdafx.h #include dadishu.h #include dadishuDlg.h#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] __FILE__; #endif/ // CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog { public:CAboutDlg();// Dialog Data//{{AFX_DATA(CAboutDlg)enum { IDD IDD_ABOUTBOX };//}}AFX_DATA// ClassWizard generated virtual function overrides//{{AFX_VIRTUAL(CAboutDlg)protected:virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support//}}AFX_VIRTUAL// Implementation protected://{{AFX_MSG(CAboutDlg)//}}AFX_MSGDECLARE_MESSAGE_MAP() };CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) {//{{AFX_DATA_INIT(CAboutDlg)//}}AFX_DATA_INIT }void CAboutDlg::DoDataExchange(CDataExchange* pDX) {CDialog::DoDataExchange(pDX);//{{AFX_DATA_MAP(CAboutDlg)//}}AFX_DATA_MAP }BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)//{{AFX_MSG_MAP(CAboutDlg)// No message handlers//}}AFX_MSG_MAP END_MESSAGE_MAP()/ // CDadishuDlg dialogCDadishuDlg::CDadishuDlg(CWnd* pParent /*NULL*/): CDialog(CDadishuDlg::IDD, pParent) {//{{AFX_DATA_INIT(CDadishuDlg)// NOTE: the ClassWizard will add member initialization here//}}AFX_DATA_INIT// Note that LoadIcon does not require a subsequent DestroyIcon in Win32hour0;minute0;second0;m_hIcon AfxGetApp()-LoadIcon(IDR_MAINFRAME); }void CDadishuDlg::DoDataExchange(CDataExchange* pDX) {CDialog::DoDataExchange(pDX);//{{AFX_DATA_MAP(CDadishuDlg)// NOTE: the ClassWizard will add DDX and DDV calls here//}}AFX_DATA_MAP }BEGIN_MESSAGE_MAP(CDadishuDlg, CDialog)//{{AFX_MSG_MAP(CDadishuDlg)ON_WM_SYSCOMMAND()ON_WM_PAINT()ON_WM_QUERYDRAGICON()ON_BN_CLICKED(IDC_CONTINUE, OnContinue)ON_BN_CLICKED(IDC_PAUSE, OnPause)ON_WM_TIMER()ON_BN_CLICKED(IDC_START, OnStart)ON_BN_CLICKED(IDC_CANCEL, OnCancel)//}}AFX_MSG_MAP END_MESSAGE_MAP()/ // CDadishuDlg message handlersBOOL CDadishuDlg::OnInitDialog() {CDialog::OnInitDialog();// Add About... menu item to system menu.// IDM_ABOUTBOX must be in the system command range.ASSERT((IDM_ABOUTBOX 0xFFF0) IDM_ABOUTBOX);ASSERT(IDM_ABOUTBOX 0xF000);CMenu* pSysMenu GetSystemMenu(FALSE);if (pSysMenu ! NULL){CString strAboutMenu;strAboutMenu.LoadString(IDS_ABOUTBOX);if (!strAboutMenu.IsEmpty()){pSysMenu-AppendMenu(MF_SEPARATOR);pSysMenu-AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);}}// Set the icon for this dialog. The framework does this automatically// when the applications main window is not a dialogSetIcon(m_hIcon, TRUE); // Set big iconSetIcon(m_hIcon, FALSE); // Set small icon// TODO: Add extra initialization heregameScore0;//分数nowMouse0;//当前老鼠GetDlgItem(IDC_PAUSE)-EnableWindow(FALSE);GetDlgItem(IDC_CONTINUE)-EnableWindow(FALSE);for (int i0;i12;i){//获取12个按钮的指针pMouse[i](CButton *)GetDlgItem(IDC_BUTTON1i);}return TRUE; // return TRUE unless you set the focus to a control }void CDadishuDlg::OnSysCommand(UINT nID, LPARAM lParam) {if ((nID 0xFFF0) IDM_ABOUTBOX){CAboutDlg dlgAbout;dlgAbout.DoModal();}else{CDialog::OnSysCommand(nID, lParam);} }// If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework.void CDadishuDlg::OnPaint() {if (IsIconic()){CPaintDC dc(this); // device context for paintingSendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);// Center icon in client rectangleint cxIcon GetSystemMetrics(SM_CXICON);int cyIcon GetSystemMetrics(SM_CYICON);CRect rect;GetClientRect(rect);int x (rect.Width() - cxIcon 1) / 2;int y (rect.Height() - cyIcon 1) / 2;// Draw the icondc.DrawIcon(x, y, m_hIcon);}else{CDialog::OnPaint();} }// The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CDadishuDlg::OnQueryDragIcon() {return (HCURSOR) m_hIcon; }void CDadishuDlg::OnContinue() {// TODO: Add your control notification handler code hereGetDlgItem(IDC_PAUSE)-EnableWindow(TRUE);GetDlgItem(IDC_CONTINUE)-EnableWindow(FALSE);GetDlgItem(IDC_START)-EnableWindow(FALSE);SetTimer(1,800,NULL);SetTimer(2,1000,NULL);}void CDadishuDlg::OnPause() {// TODO: Add your control notification handler code hereKillTimer(1);KillTimer(2);GetDlgItem(IDC_PAUSE)-EnableWindow(FALSE);GetDlgItem(IDC_START)-EnableWindow(FALSE);GetDlgItem(IDC_CONTINUE)-EnableWindow(TRUE);}void CDadishuDlg::OnTimer(UINT nIDEvent) {// TODO: Add your message handler code here and/or call defaultswitch(nIDEvent){case 1:pMouse[nowMouse]-SetIcon(0);//清除当前按钮上的老鼠nowMouserand()%12;//随机产生下一个老鼠pMouse[nowMouse]-SetIcon(AfxGetApp()-LoadIcon(IDI_ICON1));break;case 2:second;if(second60)//设置钟表的显示{minute;second0;}if(minute60){hour;minute0;}strTime.Format(%02d:%02d:%02d,hour,minute,second);//显示时间进度CWnd *pWndGetDlgItem(IDC_STATIC_time);pWnd-SetWindowText(strTime); //在设置时间新值表明定时器已经工作。break;}CDialog::OnTimer(nIDEvent); }BOOL CDadishuDlg::OnCommand(WPARAM wParam, LPARAM lParam) {// TODO: Add your specialized code here and/or call the base classCString str;for (int i0;i12;i){if (LOWORD(wParam)pMouse[i]-GetDlgCtrlID())//当前id与次元id相同则选中{break;}}//i是当前选中老鼠编号if (nowMousei){gameScore;str.Format(%d,gameScore);CStatic *pStatic(CStatic *)GetDlgItem(IDC_STATIC_score);pStatic-SetWindowText(str);if (gameScore10){SetTimer(1,600,NULL);if (gameScore50){SetTimer(1,400,NULL);}}}return CDialog::OnCommand(wParam, lParam); }void CDadishuDlg::OnStart() {// TODO: Add your control notification handler code hereGetDlgItem(IDC_PAUSE)-EnableWindow(TRUE);GetDlgItem(IDC_CONTINUE)-EnableWindow(FALSE);SetTimer(1,800,NULL);SetTimer(2,1000,NULL);}void CDadishuDlg::OnCancel() {// TODO: Add your control notification handler code hereCDialog::OnCancel();}3、运行效果如下
http://www.yutouwan.com/news/258422/

相关文章:

  • 网站设置桌面快捷方式做销售网站那家好
  • 谭谭心怎么建设网站网络服务商主要包括
  • 物流网站 源码苏州市城乡和建设局网站
  • 网站 .net 多少钱郑州建设信息网 首页
  • 中企动力做网站 知乎网址导航华图
  • 做网站怎么注册域名华为公司网站建设方案
  • 怎么做一个个人网站移动ui设计 网站
  • 苏州网站建设空间莱芜网吧恢复营业
  • 石家庄无极网站建设企业做网站哪家便宜
  • 该网站使用的安全设置虚拟云服务做网站
  • 电子商务网站建设服务模式论文深圳做网站的公
  • 生成短链接的网站甘肃建设职工教育培训中心网站
  • 中卫网站推广服务深圳关键词优化怎么样
  • 高水平高职院校 建设网站百度seo培训
  • 网站流量指向pt网站怎么做
  • 靖江建设行业协会网站北京业之峰装饰有限公司
  • 东莞市研发网站建设公司企业网站设计能否以
  • 怎样做网站二维码潍坊 网站企划
  • 网站制作网站设计安徽网站建设哪家有
  • 福田企业的网站建设公司好吗新乡 网站建设
  • 网站建设项目国内外分析报告网络推广运营培训班
  • photoshop网站视觉设计步骤茂民网站建设
  • 做网站网页需要多久手机软件商店下载安装
  • 济南想建设网站菠菜网站建设尊尚天成
  • 天津网站制作维护做实验教学视频的网站
  • 网站建设灬金手指下拉十五国外简约网站
  • 滨州 网站建设沧州凯航网络技术有限公司
  • 西安网站公司建设wordpress是cms吗
  • 备案ip 查询网站查询网站查询系统1688代运营
  • 中南建设集团招标网站省建设厅网站建筑材料备案申请