按暂停按钮出现下面情况开始按钮被激活4、按结束按钮出现 设置按钮激活5、消行及得分6、升级7、游戏结束 3.错误描述及其解决办法 (1)问题 1: 问题描述:所遇问题的描述。
解决办法:该问题的解决办法。
(2)问题 2 问题描述:所遇问题的描述。
解决办法:该问题的解决办法 ………………………………………六、感想认识 通过本次课程设计,谈谈对面向对象编程的体会。
七.程序代码skyblue_Rect.cpp : Defines the class behaviors for the application.//include quotstdafx.hquotinclude quotskyblue_Rect.hquotinclude quotMainFrm.hquotinclude quotskyblue_RectDoc.hquotinclude quotskyblue_RectView.hquotifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE __FILE__endif/////////////////////////////////////////////////////////////////////////////// CSkyblue_RectAppBEGIN_MESSAGE_MAPCSkyblue_RectApp CWinApp //AFX_MSG_MAPCSkyblue_RectApp ON_COMMANDID_APP_ABOUT OnAppAbout // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code //AFX_MSG_MAP // Standard file based document commands ON_COMMANDID_FILE_NEW CWinApp::OnFileNew ON_COMMANDID_FILE_OPEN CWinApp::OnFileOpen // Standard print setup command ON_COMMANDID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetupEND_MESSAGE_MAP/////////////////////////////////////////////////////////////////////////////// CSkyblue_RectApp constructionCSkyblue_RectApp::CSkyblue_RectApp // TODO: add construction code here // Place all significant initialization in InitInstance/////////////////////////////////////////////////////////////////////////////// The one and only CSkyblue_RectApp objectCSkyblue_RectApp theApp/////////////////////////////////////////////////////////////////////////////// CSkyblue_RectApp initializationBOOL CSkyblue_RectApp::InitInstance AfxEnableControlContainer // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable you should remove from the following // the specific initialization routines you do not need.ifdef _AFXDLL Enable3dControls // Call this when using MFC in a shared DLLelse Enable3dControlsStatic // Call this when linking to MFC staticallyendif // Change the registry key under which our settings are stored. // TODO: You should modify this string to be something appropriate // such as the name of your company or organization. SetRegistryKey_TquotLocal AppWizard-Generated Applicationsquot LoadStdProfileSettings0 // Load standard INI file options including MRU // Register the applications document templates. Document templates // serve as the connection between documents frame windows and views. CSingleDocTemplate pDocTemplate pDocTemplate new CSingleDocTemplate IDR_MAINFRAME RUNTIME_CLASSCSkyblue_RectDoc RUNTIME_CLASSCMainFrame // m I r ain SD f ame window RUNTIME_CLASSCSkyblue_RectView AddDocTemplatepDocTemplate // Parse command line for standard shell commands DDE file open CCommandLineInfo cmdInfo ParseCommandLinecmdInfo // Dispatch commands specified on the command line if ProcessShellCommandcmdInfo return FALSE // The one and only window has been initialized so show and update it. m_pMainWnd-gtShowWindowSW_SHOW m_pMainWnd-gtUpdateWindow return TRUE/////////////////////////////////////////////////////////////////////////////// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialogpublic: CAboutDlg// Dialog Data //AFX_DATACAboutDlg enum IDD IDD_ABOUTBOX //AFX_DATA // ClassWizard generated virtual function overrides //AFX_VIRTUALCAboutDlg protected: virtual void DoDataExchangeCDataExchange pDX // DDX/DDV support //AFX_VIRTUAL// Implementationprotected: //AFX_MSGCAboutDlg // No message handlers //AFX_MSG DECLARE_MESSAGE_MAPCAboutDlg::CAboutDlg : CDialogCAboutDlg::IDD //AFX_DATA_INITCAboutDlg //AFX_DATA_INITvoid CAboutDlg::DoDataExchangeCDataExchange pDX CDialog::DoDataExchangepDX //AFX_DATA_MAPCAboutDlg //AFX_DATA_MAPBEGIN_MESSAGE_MAPCAboutDlg CDialog //AFX_MSG_MAPCAboutDlg // No message handlers //AFX_MSG_MAPEND_MESSAGE_MAP// App command to run the dialogvoid CSkyblue_RectApp::OnAppAbout CAboutDlg aboutDlg aboutDlg.DoModal/////////////////////////////////////////////////////////////////////////////// CSkyblue_RectApp message handlers// OptionDlg.cpp : implementation file//include quotstdafx.hquotinclude quotskyblue_Rect.hquotinclude quotOptionDlg.hquotifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE __FILE__endif/////////////////////////////////////////////////////////////////////////////// COptionDlg dialogCOptionDlg::COptionDlgint m_iArea int m_iLevel int m_iBlockStyleBOOL m_bMusic BOOL m_bDrawGrid CWnd pParent /NULL/ : CDialogCOptionDlg::IDD pParent m_oldArea m_iArea m_oldLevel m_iLevel m_oldBlockSytle m_iBlockStyle m_oldMusic m_bMusic m_oldDrawGrid m_bDrawGrid //AFX_DATA_INITCOptionDlg m_bMusic FALSE m_bDrawGrid FALSE //AFX_DATA_INITvoid COptionDlg::DoDataExchangeCDataExchange pDX CDialog::DoDataExchangepDX //AFX_DATA_MAPCOptionDlg DDX_CheckpDX IDC_CHECK_GRID m_bDrawGrid DDX_CheckpDX IDC_CHECK_MUSIC m_bMusic //AFX_DATA_MAPBEGIN_MESSAGE_MAPCOptionDlg CDialog //AFX_MSG_MAPCOptionDlg ON_WM_CREATE // NOTE: the ClassWizard will add message map macros here //AFX_MSG_MAPEND_MESSAGE_MAP/////////////////////////////////////////////////////////////////////////////// COptionDlg message handlersint COptionDlg::OnCreateLPCREATESTRUCT lpCreateStruct if CDialog::OnCreatelpCreateStruct -1 return -1 return 0BOOL COptionDlg::OnInitDialog CDialog::OnInitDialog //参传来的参数赋初值 CComboBox m_comboArea CComboBox m_comboLevel CComboBox m_comboBlockStyle CButton m_btnDrawGrid CButton m_btnMusic m_comboArea CComboBox GetDlgItemIDC_COMBO_AREA m_comboArea -gt SetCurSel m_oldArea m_comboLevel CComboBox GetDlgItemIDC_COMBO_LEVEL m_comboLevel -gt SetCurSel m_oldLevel m_comboBlockStyle CComboBox GetDlgItemIDC_COMBO_BLOCK_SYTLE m_comboBlockStyle -gt SetCurSel m_oldBlockSytle m_btnDrawGrid
上一篇:
VC++串口上位机简单例程(源码及详细步骤)
下一篇:
问卷调查可以自动生成试卷等,并且只能一个用户登录