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

📄 photodlg.h

📁 student manager system
💻 H
字号:
#if !defined(AFX_PHOTODLG_H__5BF5259A_0E5B_46B0_87AC_3C4D7E10184F__INCLUDED_)
#define AFX_PHOTODLG_H__5BF5259A_0E5B_46B0_87AC_3C4D7E10184F__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPhotoDlg dialog

class CPhotoDlg : public CDialog
{
// Construction
public:
	CPhotoDlg(CWnd* pParent = NULL);   // standard constructor
	_RecordsetPtr m_pRecordset; 

	int action;
	//-----图像数据参数与方法------------//
	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(CPhotoDlg)
	enum { IDD = IDD_PHOTO_DLG };
	CEdit	m_ID;
	CString	m_strId;
	CString	m_strName;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPhotoDlg)
	afx_msg void OnAddPhotoBtn();
	afx_msg void OnModifyPhotoBtn();
	afx_msg void OnDeletePhotoBtn();
	afx_msg void OnExecutePhotoBtn();
	afx_msg void OnLookforPhotoBtn();
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnSelPhotoBtn();
	afx_msg void OnKillfocusEditPhotoId();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PHOTODLG_H__5BF5259A_0E5B_46B0_87AC_3C4D7E10184F__INCLUDED_)

⌨️ 快捷键说明

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