⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menudlg.h

📁 该源码的前台用C++编写
💻 H
字号:
#if !defined(AFX_DLGORDER_H__A5768E50_8574_4981_8DA5_5526BD93B36B__INCLUDED_)
#define AFX_DLGORDER_H__A5768E50_8574_4981_8DA5_5526BD93B36B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgOrder.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMenuDlg dialog

class CMenuDlg : public CDialog
{
// Construction
public:
	CMenuDlg(CWnd* pParent = NULL);   // standard constructor
	_RecordsetPtr	m_pRecordset;
		//修改标记
	BOOL			m_bModify;
	//添加标记
	BOOL            m_bNewRecord;

	//根据当前记录的位置,重置“<”“>”的有效性
	void			ResetControls();
	//判断是否为第一个记录
	BOOL			FirstRecord();
	//判断是否为最后一个记录
	BOOL			LastRecord();
	//读取当前记录集中的数据
	void			ReadData();
	
	//-----图像数据参数与方法------------//
	HBITMAP			m_hPhotoBitmap;
	DWORD			m_nFileLen;
	HBITMAP			BufferToHBITMAP();
	BOOL			LoadBMPFile(const char* pBMPPathname);
	char			*m_pBMPBuffer;
	void			DestroyPhoto();
	void			DrawUserPhoto(int x,int y,CDC* pDC);
	//-----------------//
// Dialog Data
	//{{AFX_DATA(CMenuDlg)
	enum { IDD = IDD_SETMENU_DLG };
	CButton	m_btnLast;
	CButton	m_btnFirst;
	CButton	m_btnDelete;
	CButton	m_btnSave;
	CButton	m_btnSelPhoto;
	CButton	m_btnPreview;
	CButton	m_btnNext;
	CEdit	m_editType;
	CEdit	m_editRemark;
	CEdit	m_editPrice;
	CEdit	m_editNum;
	CEdit	m_editName;
	CEdit	m_editFoodCost;
	CString	m_strFoodName;
	CString	m_strFoodType;
	CString	m_strFoodRemark;
	int		m_nFoodNum;
	int		m_nFoodPrice;
	int		m_nFoodCost;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMenuDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CMenuDlg)
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnFoodPic();
	afx_msg void OnFoodFirst();
	afx_msg void OnFoodPreview();
	afx_msg void OnFoodNext();
	afx_msg void OnFoodLast();
	virtual BOOL OnInitDialog();
	afx_msg void OnAddFood();
	afx_msg void OnPaint();
	afx_msg void OnDeleteFood();
	afx_msg void OnSaveFood();
	afx_msg void OnChangeFoodNum();
	afx_msg void OnChangeFoodName();
	afx_msg void OnChangeFoodType();
	afx_msg void OnChangeFoodPrice();
	afx_msg void OnChangeFoodRemark();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGORDER_H__A5768E50_8574_4981_8DA5_5526BD93B36B__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -