MFCApplication1Dlg.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. 
  2. // MFCApplication1Dlg.h: 头文件
  3. //
  4. #pragma once
  5. #define WM_SHOWINFO (WM_USER+0x1)
  6. #define WM_SHOWSCANINFO (WM_USER+0x2)
  7. // CMFCApplication1Dlg 对话框
  8. class CMFCApplication1Dlg : public CDialogEx
  9. {
  10. // 构造
  11. public:
  12. CMFCApplication1Dlg(CWnd* pParent = nullptr); // 标准构造函数
  13. // 对话框数据
  14. #ifdef AFX_DESIGN_TIME
  15. enum { IDD = IDD_MFCAPPLICATION1_DIALOG };
  16. #endif
  17. protected:
  18. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  19. // 实现
  20. protected:
  21. HICON m_hIcon;
  22. // 生成的消息映射函数
  23. virtual BOOL OnInitDialog();
  24. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  25. afx_msg void OnPaint();
  26. afx_msg HCURSOR OnQueryDragIcon();
  27. afx_msg LRESULT OnShowInfo(WPARAM wParam, LPARAM lParam);
  28. afx_msg LRESULT OnShowScanInfo(WPARAM wParam, LPARAM lParam);
  29. DECLARE_MESSAGE_MAP()
  30. public:
  31. afx_msg void OnBnClickedOk();
  32. CString m_strMsg;
  33. CString m_strScanMsg;
  34. void UpdateMsg(CString strMsg);
  35. void UpdateScanMsg(CString strMsg);
  36. afx_msg void OnBnClickedCancel();
  37. void SelectFolder(HWND hwnd, CString& lpszFolder);
  38. void SelectFile(CString& lpszFile);
  39. afx_msg void OnBnClickedBtnTxt();
  40. afx_msg void OnBnClickedBtnPdf();
  41. CString m_strTextPath;
  42. CString m_strPdfDir;
  43. CString m_strModePath;
  44. CString m_strImgPath;
  45. CString m_strCutPath;
  46. afx_msg void OnBnClickedBtnModepath();
  47. afx_msg void OnBnClickedBtnImgpath();
  48. afx_msg void OnBnClickedBtnCutpath();
  49. afx_msg void OnBnClickedBtnScan();
  50. };