MFCApplication1Dlg.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. 
  2. // MFCApplication1Dlg.h: 头文件
  3. //
  4. #pragma once
  5. #define WM_SHOWINFO (WM_USER+0x1)
  6. #define WM_SHOWSCANINFO (WM_USER+0x2)
  7. #define WM_PROCESS (WM_USER+0x3)
  8. #define WM_SHOWREPEATINFO (WM_USER+0x4)
  9. #define WM_SHOWCSVINFO (WM_USER+0x5)
  10. // CMFCApplication1Dlg 对话框
  11. class CMFCApplication1Dlg : public CDialogEx
  12. {
  13. // 构造
  14. public:
  15. CMFCApplication1Dlg(CWnd* pParent = nullptr); // 标准构造函数
  16. // 对话框数据
  17. #ifdef AFX_DESIGN_TIME
  18. enum { IDD = IDD_MFCAPPLICATION1_DIALOG };
  19. #endif
  20. protected:
  21. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  22. // 实现
  23. protected:
  24. HICON m_hIcon;
  25. // 生成的消息映射函数
  26. virtual BOOL OnInitDialog();
  27. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  28. afx_msg void OnPaint();
  29. afx_msg HCURSOR OnQueryDragIcon();
  30. afx_msg LRESULT OnShowInfo(WPARAM wParam, LPARAM lParam);
  31. afx_msg LRESULT OnShowScanInfo(WPARAM wParam, LPARAM lParam);
  32. afx_msg LRESULT OnProcessInfo(WPARAM wParam, LPARAM lParam);
  33. afx_msg LRESULT OnShowRepeatInfo(WPARAM wParam, LPARAM lParam);
  34. afx_msg LRESULT OnShowCvsInfo(WPARAM wParam, LPARAM lParam);
  35. DECLARE_MESSAGE_MAP()
  36. public:
  37. afx_msg void OnBnClickedOk();
  38. CString m_strMsg;
  39. CString m_strScanMsg;
  40. CString m_strRepeatMsg;
  41. CString m_strCsvMsg;
  42. void UpdateMsg(CString strMsg);
  43. void UpdateScanMsg(CString strMsg);
  44. afx_msg void OnBnClickedCancel();
  45. void SelectFolder(HWND hwnd, CString& lpszFolder);
  46. void SelectFile(CString& lpszFile);
  47. void SelectCsvFile(CString& lpszFile);
  48. afx_msg void OnBnClickedBtnTxt();
  49. afx_msg void OnBnClickedBtnPdf();
  50. CString m_strTextPath;
  51. CString m_strPdfDir;
  52. CString m_strPageNumber;
  53. CString m_strModePath;
  54. CString m_strImgPath;
  55. CString m_strCutPath;
  56. CString m_strRepeatDir;
  57. afx_msg void OnBnClickedBtnModepath();
  58. afx_msg void OnBnClickedBtnImgpath();
  59. afx_msg void OnBnClickedBtnCutpath();
  60. afx_msg void OnBnClickedBtnScan();
  61. afx_msg void OnBnClickedBtnRepeatpath();
  62. void FormatScanMsg(const char * szFmt, ...);
  63. void FormatRepeatMsg(const char *szFmt, ...);
  64. void FormatCsvMsg(const char *szFmt, ...);
  65. afx_msg void OnBnClickedBtnRepeat();
  66. afx_msg void OnBnClickedBtnCsvpath();
  67. afx_msg void OnBnClickedBtnCsvfiledir();
  68. afx_msg void OnBnClickedBtnBaiduIdentify();
  69. };