// TestDevCaptureDlg.h : 头文件 // #pragma once #include "afxwin.h" #include "afxcmn.h" #include using namespace Gdiplus; // CTestDevCaptureDlg 对话框 class CTestDevCaptureDlg : public CDialogEx { // 构造 public: CTestDevCaptureDlg(CWnd* pParent = NULL); // 标准构造函数 // 对话框数据 enum { IDD = IDD_TESTDEVCAPTURE_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: afx_msg void OnBnClickedButton1(); afx_msg void OnBnClickedButton2(); afx_msg void OnBnClickedButton3(); CComboBox cb_devname; CComboBox cb_preRes; afx_msg void OnCbnSelchangeCombo2(); CListCtrl m_list; CImageList m_imList; private: ULONG_PTR m_GdiplusToken; GdiplusStartupInput gdiStartInput; public: afx_msg void OnDestroy(); void AddToPreview(CString fPath); Bitmap* toGetThumbnailBitmap(CString path); afx_msg void OnNMDblclkList1(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnBnClickedButton6(); afx_msg void OnBnClickedButton5(); afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg void OnCbnSelchangeCombo1(); int toGetCamInfo(); int toGetCamResolution(); int toOpenDevice(); afx_msg void OnBnClickedCheck2(); afx_msg void OnBnClickedButton4(); afx_msg void OnBnClickedButton7(); afx_msg void OnBnClickedButton8(); afx_msg void OnBnClickedButton9(); afx_msg void OnBnClickedButton10(); afx_msg void OnBnClickedButton11(); afx_msg void OnBnClickedButton12(); afx_msg void OnBnClickedCheck3(); afx_msg void OnCbnSelchangeCombo3(); afx_msg void OnCbnSelchangeCombo4(); afx_msg void OnCbnSelchangeCombo5(); CComboBox cb_format; CComboBox cb_color; CComboBox cb_dpi; afx_msg void OnBnClickedButton13(); afx_msg void OnBnClickedButton14(); afx_msg void OnBnClickedButton15(); afx_msg void OnBnClickedButton16(); afx_msg void OnBnClickedButton17(); afx_msg void OnBnClickedButton18(); afx_msg void OnBnClickedRadio1(); afx_msg void OnBnClickedRadio2(); afx_msg void OnBnClickedRadio3(); };