📄 usermaintenancedlg.h
字号:
// UserMaintenanceDlg.h : header file
//
#if !defined(AFX_USERMAINTENANCEDLG_H__446E64E9_0887_11D2_8DB2_204C4F4F5020__INCLUDED_)
#define AFX_USERMAINTENANCEDLG_H__446E64E9_0887_11D2_8DB2_204C4F4F5020__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CUserMaintenanceDlg dialog
#include "User.h"
class CUserMaintenanceDlg : public CDialog
{
// Construction
public:
CUserMaintenanceDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CUserMaintenanceDlg)
enum { IDD = IDD_USERMAINTENANCE_DIALOG };
CButton m_btnClose;
CButton m_btnDelete;
CButton m_btnSave;
CListBox m_lbxUsers;
CString m_strUserID;
CString m_strUserName;
int m_iStatus;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUserMaintenanceDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
protected:
void FillListboxWithUsers();
BOOL GetSelectedUser(int* piIndex, CUser** ppUser);
void InitControls();
BOOL SaveUser(CUser* pUser);
BOOL DeleteUser(CUser* pUser);
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CUserMaintenanceDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnAbout();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSelchangeLbxUsers();
afx_msg void OnBtnClose();
afx_msg void OnBtnSave();
afx_msg void OnBtnDelete();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_USERMAINTENANCEDLG_H__446E64E9_0887_11D2_8DB2_204C4F4F5020__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -