MFCApplication1Dlg.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. // CMFCApplication1Dlg 对话框
  9. class CMFCApplication1Dlg : public CDialogEx
  10. {
  11. // 构造
  12. public:
  13. CMFCApplication1Dlg(CWnd* pParent = nullptr); // 标准构造函数
  14. // 对话框数据
  15. #ifdef AFX_DESIGN_TIME
  16. enum { IDD = IDD_MFCAPPLICATION1_DIALOG };
  17. #endif
  18. protected:
  19. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  20. // 实现
  21. protected:
  22. HICON m_hIcon;
  23. // 生成的消息映射函数
  24. virtual BOOL OnInitDialog();
  25. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  26. afx_msg void OnPaint();
  27. afx_msg HCURSOR OnQueryDragIcon();
  28. afx_msg LRESULT OnShowInfo(WPARAM wParam, LPARAM lParam);
  29. afx_msg LRESULT OnShowScanInfo(WPARAM wParam, LPARAM lParam);
  30. afx_msg LRESULT OnProcessInfo(WPARAM wParam, LPARAM lParam);
  31. DECLARE_MESSAGE_MAP()
  32. public:
  33. afx_msg void OnBnClickedOk();
  34. CString m_strMsg;
  35. CString m_strScanMsg;
  36. void UpdateMsg(CString strMsg);
  37. void UpdateScanMsg(CString strMsg);
  38. afx_msg void OnBnClickedCancel();
  39. void SelectFolder(HWND hwnd, CString& lpszFolder);
  40. void SelectFile(CString& lpszFile);
  41. afx_msg void OnBnClickedBtnTxt();
  42. afx_msg void OnBnClickedBtnPdf();
  43. CString m_strTextPath;
  44. CString m_strPdfDir;
  45. CString m_strModePath;
  46. CString m_strImgPath;
  47. CString m_strCutPath;
  48. afx_msg void OnBnClickedBtnModepath();
  49. afx_msg void OnBnClickedBtnImgpath();
  50. afx_msg void OnBnClickedBtnCutpath();
  51. afx_msg void OnBnClickedBtnScan();
  52. void FormatScanMsg(const char * szFmt, ...);
  53. };