学生通讯录管理系统说明书内容摘要:

_pSetDelete()删除当前记录 if(==0)若当前记录索引号课程设计说明书 沈 阳 大 学 为 0 , m_pSetMoveNext()下移一记录 m_pSetMoveFirst()移动到第一个记录,UpdateData(FALSE)控件显示成员变量的值。 如操作错误 则出现如图 9 所示提示 图 9 错误提示 部分程序代码 【 1】 // : Defines the class behaviors for the application. // include include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // CListTestCtrlApp BEGIN_MESSAGE_MAP(CListTestCtrlApp, CWinApp) 课程设计说明书 沈 阳 大 学 //{{AFX_MSG_MAP(CListTestCtrlApp) // NOTE the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CListTestCtrlApp construction CListTestCtrlApp::CListTestCtrlApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CListTestCtrlApp object CListTestCtrlApp theApp。 ///////////////////////////////////////////////////////////////////////////// // CListTestCtrlApp initialization BOOL CListTestCtrlApp::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 DLL else Enable3dControlsStatic()。 // Call this when linking to MFC statically endif USkinInit(NULL,NULL,_T(skin\\))。 CListTestCtrlDlg dlg。 m_pMainWnd = amp。 dlg。 int nResponse = ()。 if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } USkinExit()。 // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application39。 s message pump. return FALSE。 } 课程设计说明书 沈 阳 大 学 3 运行 结果与分析 系统 界面 主界面如图所示 图 5主界面 “ 添加 ” 按钮调用函数 OnAddRecord()并打开如图对话框 ,其完整代码如下 : void CListTestCtrlDlg::OnAddRecord() { CAddRecordDlg dlg。 CString str。 if(() == IDOK) { int count = m_pRecordsetGetRecordCount()。 if。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。