抓屏并保存为BMP文件Dlg.h
上传用户:shibojindu
上传日期:2013-06-09
资源大小:37k
文件大小:1k
- // 抓屏并保存为BMP文件Dlg.h : header file
- //
- #if !defined(AFX_BMPDLG_H__73FEC8A6_A226_11D2_8010_5254AB250EAA__INCLUDED_)
- #define AFX_BMPDLG_H__73FEC8A6_A226_11D2_8010_5254AB250EAA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CBMPDlg dialog
- HANDLE WINAPI DIBFromWindow(CWnd *pWnd, CRect* pRect);
- BOOL WINAPI SaveToFile(HANDLE hDib, CFile& file);
- class CBMPDlg : public CDialog
- {
- // Construction
- public:
- CBMPDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CBMPDlg)
- enum { IDD = IDD_BMP_DIALOG };
- CString m_tip;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CBMPDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CBMPDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnCaptureSave();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_BMPDLG_H__73FEC8A6_A226_11D2_8010_5254AB250EAA__INCLUDED_)