Index: src/ch/MainWnd.h =================================================================== diff -u -N -r1d8d51e0dd4d8ebcf0bd457d01fab984585220c0 -ra5f396da5ed5ffb3fcd9fdf22afb5a7fd07e1ab8 --- src/ch/MainWnd.h (.../MainWnd.h) (revision 1d8d51e0dd4d8ebcf0bd457d01fab984585220c0) +++ src/ch/MainWnd.h (.../MainWnd.h) (revision a5f396da5ed5ffb3fcd9fdf22afb5a7fd07e1ab8) @@ -32,48 +32,22 @@ { public: CMainWnd(); + virtual ~CMainWnd(); + DECLARE_DYNCREATE(CMainWnd) BOOL Create(); -// Attributes -public: - CTrayIcon m_ctlTray; - - chcore::TTaskManager m_tasks; - chcore::IFeedbackHandlerFactory* m_pFeedbackFactory; - chcore::TSharedMemory m_tCHExtharedMemory; - - CMiniViewDlg* m_pdlgMiniView; - CStatusDlg* m_pdlgStatus; - - DWORD m_dwLastTime; - UINT m_uiTaskbarRestart; - -// Operations -public: - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CMainFrame) - protected: +protected: virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); - //}}AFX_VIRTUAL -// Implementation -public: - virtual ~CMainWnd(); - -// Generated message map functions -protected: BOOL RegisterClass(); int ShowTrayIcon(); void ShowStatusWindow(const chcore::TTaskPtr& spSelect = chcore::TTaskPtr()); void PrepareToExit(); void ProcessCommandLine(const TCommandLineParser& rCommandLine); - //{{AFX_MSG(CMainWnd) afx_msg void OnPopupShowStatus(); afx_msg void OnPopupShowOptions(); afx_msg void OnClose(); @@ -89,11 +63,25 @@ afx_msg void OnPopupUnregisterdll(); afx_msg void OnAppExit(); afx_msg void OnPopupHelp(); - //}}AFX_MSG afx_msg LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam); - DECLARE_MESSAGE_MAP() -public: afx_msg void OnPopupCheckForUpdates(); + + DECLARE_MESSAGE_MAP() + +private: + chcore::TTaskManagerStatsSnapshotPtr m_spTaskMgrStats; + + CTrayIcon m_ctlTray; + + chcore::TTaskManager m_tasks; + chcore::IFeedbackHandlerFactory* m_pFeedbackFactory; + chcore::TSharedMemory m_tCHExtharedMemory; + + CMiniViewDlg* m_pdlgMiniView; + CStatusDlg* m_pdlgStatus; + + DWORD m_dwLastTime; + UINT m_uiTaskbarRestart; }; /////////////////////////////////////////////////////////////////////////////