studentdlg.h
来自「一个用VC写的学生成绩管理系统,其中对数据库的访问是采用ODBC方式.」· C头文件 代码 · 共 73 行
H
73 行
// StudentDlg.h : header file
//
#if !defined(AFX_STUDENTDLG_H__9586587A_893D_4FD3_962F_FDA4E3E020AD__INCLUDED_)
#define AFX_STUDENTDLG_H__9586587A_893D_4FD3_962F_FDA4E3E020AD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "odbc.h"
/////////////////////////////////////////////////////////////////////////////
// CStudentDlg dialog
class CStudentDlg : public CDialog
{
// Construction
public:
void GetPaiming(CString sql);
void RefreshData(CString strSQL);
void RegisterDBSource(CString strDSName, CString strDBPath);
CStudentDlg(CWnd* pParent = NULL); // standard constructor
CString sql;
Codbc m_record;
CString type;
int index;
CDatabase m_rec;
// Dialog Data
//{{AFX_DATA(CStudentDlg)
enum { IDD = IDD_STUDENT_DIALOG };
CComboBox m_sort;
CListCtrl m_list;
CComboBox m_comb_type;
CComboBox m_comb_class;
CString m_find;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStudentDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CStudentDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSearch();
afx_msg void OnCloseupCombo1();
afx_msg void OnBseeall();
afx_msg void OnBadd();
afx_msg void OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMDelete();
afx_msg void OnMadd();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnCloseup_sort();
afx_msg void OnMEdit();
afx_msg void OnBabout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUDENTDLG_H__9586587A_893D_4FD3_962F_FDA4E3E020AD__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?