📄 goodssetdialog.h
字号:
#pragma once
#include "afxcmn.h"
// CGoodsSetDialog 对话框
class CGoodsSetDialog : public CDialog
{
DECLARE_DYNAMIC(CGoodsSetDialog)
public:
CGoodsSetDialog(CWnd* pParent = NULL); // 标准构造函数
virtual ~CGoodsSetDialog();
// 对话框数据
enum { IDD = IDD_DIALOG_GOODSET };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButtonExit();
void ControlCanNotUse();
void ControlCanUse();
void OnConnection();
void InitGoodsList();
protected:
CListCtrl m_GoodsList;
_ConnectionPtr m_pConnection;
BOOL m_GoodAdd;
BOOL m_GoodModify;
BOOL m_Succeed;
int m_Index;
static const TCHAR m_szFilters[];
CString m_strPathName;
public:
afx_msg void OnBnClickedButtonAdd();
afx_msg void OnBnClickedButtonGoodscancel();
protected:
// 商品名称
CString m_GoodsName;
// 商品单位
CString m_GoodsUnit;
// 商品价钱
CString m_GoodsPrice;
// 警告存量
CString m_Warn;
public:
afx_msg void OnBnClickedButtonGoodsok();
void AddNew();
void Modify();
BOOL SaveFile(LPCTSTR pszFile);
afx_msg void OnBnClickedButtonModify();
afx_msg void OnBnClickedButtonDel();
afx_msg void OnEnChangeEditGoodsname();
afx_msg void OnBnClickedButtonGoodsettoexcel();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -