Index: src/ch/ShutdownDlg.h =================================================================== diff -u -rd5c3edd0d167db9b5d47d04248820fda49499a5e -rcb4e9d4b60d62b25ae2cf556c0642601af56c787 --- src/ch/ShutdownDlg.h (.../ShutdownDlg.h) (revision d5c3edd0d167db9b5d47d04248820fda49499a5e) +++ src/ch/ShutdownDlg.h (.../ShutdownDlg.h) (revision cb4e9d4b60d62b25ae2cf556c0642601af56c787) @@ -24,41 +24,26 @@ class CShutdownDlg : public ictranslate::CLanguageDialog { -// Construction public: CShutdownDlg(); // standard constructor - int m_iOverallTime; + void SetOverallTime(int iTotalSeconds); -// Dialog Data - //{{AFX_DATA(CShutdownDlg) - enum { IDD = IDD_SHUTDOWN_DIALOG }; - CProgressCtrl m_ctlProgress; - CString m_strTime; - //}}AFX_DATA - - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CShutdownDlg) - protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support - //}}AFX_VIRTUAL - -// Implementation -protected: +private: void FormatTimeString(int iTime, CString* pstrData); - int m_iTime; // czas w sekundach - // Generated message map functions - //{{AFX_MSG(CShutdownDlg) virtual BOOL OnInitDialog(); + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + afx_msg void OnTimer(UINT_PTR nIDEvent); - //}}AFX_MSG + DECLARE_MESSAGE_MAP() + +private: + int m_iOverallTime = 0; + int m_iTime = 0; // time in seconds + CProgressCtrl m_ctlProgress; + CString m_strTime; }; -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - #endif