TestDevCaptureDlg.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // TestDevCaptureDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "afxwin.h"
  5. #include "afxcmn.h"
  6. #include<GdiPlus.h>
  7. using namespace Gdiplus;
  8. // CTestDevCaptureDlg 对话框
  9. class CTestDevCaptureDlg : public CDialogEx
  10. {
  11. // 构造
  12. public:
  13. CTestDevCaptureDlg(CWnd* pParent = NULL); // 标准构造函数
  14. // 对话框数据
  15. enum { IDD = IDD_TESTDEVCAPTURE_DIALOG };
  16. protected:
  17. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  18. // 实现
  19. protected:
  20. HICON m_hIcon;
  21. // 生成的消息映射函数
  22. virtual BOOL OnInitDialog();
  23. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  24. afx_msg void OnPaint();
  25. afx_msg HCURSOR OnQueryDragIcon();
  26. DECLARE_MESSAGE_MAP()
  27. public:
  28. afx_msg void OnBnClickedButton1();
  29. afx_msg void OnBnClickedButton2();
  30. afx_msg void OnBnClickedButton3();
  31. CComboBox cb_devname;
  32. CComboBox cb_preRes;
  33. afx_msg void OnCbnSelchangeCombo2();
  34. CListCtrl m_list;
  35. CImageList m_imList;
  36. private:
  37. ULONG_PTR m_GdiplusToken;
  38. GdiplusStartupInput gdiStartInput;
  39. public:
  40. afx_msg void OnDestroy();
  41. void AddToPreview(CString fPath);
  42. Bitmap* toGetThumbnailBitmap(CString path);
  43. afx_msg void OnNMDblclkList1(NMHDR *pNMHDR, LRESULT *pResult);
  44. afx_msg void OnBnClickedButton6();
  45. afx_msg void OnBnClickedButton5();
  46. afx_msg void OnTimer(UINT_PTR nIDEvent);
  47. afx_msg void OnCbnSelchangeCombo1();
  48. int toGetCamInfo();
  49. int toGetCamResolution();
  50. int toOpenDevice();
  51. afx_msg void OnBnClickedCheck2();
  52. afx_msg void OnBnClickedButton4();
  53. afx_msg void OnBnClickedButton7();
  54. afx_msg void OnBnClickedButton8();
  55. afx_msg void OnBnClickedButton9();
  56. afx_msg void OnBnClickedButton10();
  57. afx_msg void OnBnClickedButton11();
  58. afx_msg void OnBnClickedButton12();
  59. afx_msg void OnBnClickedCheck3();
  60. afx_msg void OnCbnSelchangeCombo3();
  61. afx_msg void OnCbnSelchangeCombo4();
  62. afx_msg void OnCbnSelchangeCombo5();
  63. CComboBox cb_format;
  64. CComboBox cb_color;
  65. CComboBox cb_dpi;
  66. afx_msg void OnBnClickedButton13();
  67. afx_msg void OnBnClickedButton14();
  68. afx_msg void OnBnClickedButton15();
  69. afx_msg void OnBnClickedButton16();
  70. afx_msg void OnBnClickedButton17();
  71. afx_msg void OnBnClickedButton18();
  72. afx_msg void OnBnClickedRadio1();
  73. afx_msg void OnBnClickedRadio2();
  74. afx_msg void OnBnClickedRadio3();
  75. afx_msg void OnBnClickedButton19();
  76. afx_msg void OnBnClickedButton20();
  77. };