myadoblobdlg.h
来自「VC程序设计与实例中与数据库编程有关的vc++源代码」· C头文件 代码 · 共 82 行
H
82 行
// MyAdoBlobDlg.h : header file
//
#if !defined(AFX_MYADOBLOBDLG_H__0FA2265B_0137_43ED_97F3_F99E419DFCC1__INCLUDED_)
#define AFX_MYADOBLOBDLG_H__0FA2265B_0137_43ED_97F3_F99E419DFCC1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyAdoBlobDlg dialog
class CMyAdoBlobDlg : public CDialog
{
// Construction
public:
void DrawUserPhoto(int x,int y,CDC* pDC);
BOOL LoadBMPFile(const char* pBMPPathname);
HBITMAP BufferToHBITMAP();
BOOL LastRecord();
BOOL FirstRecord();
void DestroyPhoto();
void ResetControls();
void ReadData();
_RecordsetPtr m_pRecordset;
HBITMAP m_hPhotoBitmap;
BOOL m_bModify;
BOOL m_bNewUser;
char *m_pBMPBuffer;
DWORD m_nFileLen;
CMyAdoBlobDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyAdoBlobDlg)
enum { IDD = IDD_MYADOBLOB_DIALOG };
CEdit m_editUserName;
CButton m_buttonSelectPhoto;
CButton m_buttonSaveInfo;
CButton m_buttonPreviousUser;
CEdit m_editOld;
CButton m_buttonNextUser;
CButton m_buttonDeleteUser;
CString m_Old;
CString m_UserName;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyAdoBlobDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyAdoBlobDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnAdduser();
afx_msg void OnDeleteuser();
afx_msg void OnNextuser();
afx_msg void OnChangeOld();
afx_msg void OnPrevioususer();
afx_msg void OnSaveinfo();
afx_msg void OnSelectphoto();
afx_msg void OnChangeUsername();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYADOBLOBDLG_H__0FA2265B_0137_43ED_97F3_F99E419DFCC1__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?