龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > VC开发 >

用Visual C++实现屏幕抓程序(7)

时间:2009-12-30 15:42来源:未知 作者:admin 点击:
分享到:
//////////////////////////////////////////////////// CaptureDlg.h : header file #if !defined(AFX_CAPTUREDLG_H__97B51708_C928_11D5_B7D6_0080C82BE86B__INCLUDED_) #define AFX_CAPTUREDLG_H__97B51708_C928_

//////////////////////////////////////////////////// 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

精彩图集

赞助商链接