123456789101112131415161718192021222324252627282930313233343536373839 |
- #pragma once
- #include "afxwin.h"
- #include <string>
- using namespace std;
- typedef void(*PirntLogPtr)(const wchar_t*);
- class CUnZipManager
- {
- public:
- CUnZipManager();
- ~CUnZipManager();
- void SetMainHwnd(HWND hwnd, PirntLogPtr pPrintLog);
- void OnClose();
- void ShowPrintDialog();
- void HidePrintDialog();
- void OnTaskStart();
- bool OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
- int GetBatchCount() { return m_nBatchCount; }
- void DoMonitor();
- void RunJHUzip();
- wstring m_strUnZipPath; // 解压程序路径
- wstring m_strConfigPath; // config路径
-
- protected:
- void SendCopyData(const char* szParam);
- private:
- HANDLE m_hShareMemory;
- HANDLE m_hThreadMonitor;
- HWND m_hMainHwnd;
- HWND m_hPrintWnd;
- int m_nBatchCount;
- BOOL m_bMonitor;
- PROCESS_INFORMATION m_PrintProcStruct;
- PirntLogPtr m_pPrintLog;
- };
|