00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _CCPRINTPROGRESSDLG_H_
00028 #define _CCPRINTPROGRESSDLG_H_
00029
00030 #include "ProgressInterface.h"
00031 #include "CCPrintDlg.h"
00032 #include "InternetRequest.h"
00033 #include "resource.h"
00034
00035 class InternetRequest;
00036
00040 class CCPrintProgressDlg : public CCPrintDlg, public ProgressInterface
00041 {
00042 public:
00043
00047 CCPrintProgressDlg() : CCPrintDlg(IDD_PROGRESS), m_bCancel(false), m_bSuccess(false), m_uTimer(0), m_nStep(0) {};
00051 ~CCPrintProgressDlg() {};
00052
00053 protected:
00054
00056 bool m_bCancel;
00058 int m_nStep;
00060 UINT m_uTimer;
00062 bool m_bSuccess;
00063
00064
00066 InternetRequest* m_pRequest;
00068 std::tstring m_sRequest;
00070 LPCTSTR m_lpServer;
00072 LPCSTR m_lpOptional;
00074 LPCTSTR m_lpHeaders;
00075
00076 public:
00077
00079 InternetRequestBuffer m_buffer;
00080
00081 public:
00082
00084 bool DoRequest(HWND hParent, InternetRequest& request, const std::tstring& sRequest, LPCTSTR lpServer = NULL, LPCSTR lpOptional = NULL, LPCTSTR lpHeaders = NULL);
00085
00086 protected:
00087
00089 virtual BOOL PageProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
00090
00091 public:
00092
00097 virtual bool GetCancel() {return m_bCancel;};
00102 virtual void OnFinished(bool bSuccess);
00103 };
00104
00105 #endif //#define _CCPRINTPROGRESSDLG_H_