用Visual C++实现屏幕抓程序(7)
//////////////////////////////////////////////////// CaptureDlg.h : header file
#if !defined(AFX_CAPTUREDLG_H__97B51708_C928_11D5_B7D6_0080C82BE86B__INCLUDED_)
#define AFX_CAPTUREDLG_H__97B51708_C928_11D5_B7D6_0080C82BE86B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCaptureDlg : public CDialog
{
// Construction
public:
BOOL bTray;
BOOL bRegistered;
BOOL RegisterHotkey();
UCHAR cKey;
UCHAR cMask;
void DeleteIcon();
void AddIcon();
UINT nCount;
void SaveBmp();
CCaptureDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCaptureDlg)
enum { IDD = IDD_CAPTURE_DIALOG };
CComboBox m_Key;
BOOL m_bControl;
BOOL m_bAlt;
BOOL m_bShift;
CString m_Path;
CString m_Number;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCaptureDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCaptureDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
afx_msg void OnAbout();
afx_msg void OnBrowse();
afx_msg void OnChange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif
- 上一篇:VC++中实现以复杂线条为基础的图形绘图
- 下一篇:通过例程分析状态条用法