📄 booksdlg.h
字号:
// BooksDlg.h : header file
//
#pragma once
#include "afxcmn.h"
#include "Database.h"
#define X_OFFSET 10
#define Y_OFFSET 10
#define BOOKS_TITLE TEXT("Title")
#define BOOKS_ISBN TEXT("ISBN")
#define BOOKS_AUTHORS TEXT("Author(s)")
#define BOOKS_TITLE_LEN 120
#define BOOKS_ISBN_LEN 80
#define BOOKS_AUTHORS_LEN 150
// CBooksDlg dialog
class CBooksDlg : public CDialog
{
// Construction
public:
CBooksDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_BOOKS_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
private:
void PerpareListControl(CListCtrl* pList);
void CreateMenu(UINT uMenuId);
BOOL OpenBooksDatabase();
void PopulateRecords(CListCtrl* pList);
private:
CListCtrl m_wndBooks;
CBooks m_db;
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
afx_msg void OnMenuAbout();
afx_msg void OnMenuAdd();
afx_msg void OnMenuDelete();
afx_msg void OnMenuEdit();
afx_msg void OnNMDblclkRecords(NMHDR *pNMHDR, LRESULT *pResult);
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -