| 1 | // MainFrm.h |
|---|
| 2 | // |
|---|
| 3 | // Eraser. Secure data removal. For Windows. |
|---|
| 4 | // Copyright © 1997-2001 Sami Tolvanen (sami@tolvanen.com). |
|---|
| 5 | // |
|---|
| 6 | // This program is free software; you can redistribute it and/or |
|---|
| 7 | // modify it under the terms of the GNU General Public License |
|---|
| 8 | // as published by the Free Software Foundation; either version 2 |
|---|
| 9 | // of the License, or (at your option) any later version. |
|---|
| 10 | // |
|---|
| 11 | // This program is distributed in the hope that it will be useful, |
|---|
| 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | // GNU General Public License for more details. |
|---|
| 15 | // |
|---|
| 16 | // You should have received a copy of the GNU General Public License |
|---|
| 17 | // along with this program; if not, write to the Free Software |
|---|
| 18 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|---|
| 19 | // 02111-1307, USA. |
|---|
| 20 | |
|---|
| 21 | #if !defined(AFX_MAINFRM_H__70E9C858_F0D1_11D2_BBF3_00105AAF62C4__INCLUDED_) |
|---|
| 22 | #define AFX_MAINFRM_H__70E9C858_F0D1_11D2_BBF3_00105AAF62C4__INCLUDED_ |
|---|
| 23 | |
|---|
| 24 | #if _MSC_VER > 1000 |
|---|
| 25 | #pragma once |
|---|
| 26 | #endif // _MSC_VER > 1000 |
|---|
| 27 | |
|---|
| 28 | #include "EraserUI\GfxSplitterWnd.h" |
|---|
| 29 | #include "EraserUI\GfxOutBarCtrl.h" |
|---|
| 30 | #include "EraserUI\ShellPidl.h" |
|---|
| 31 | #include "EraserUI\AlphaToolBar.h" |
|---|
| 32 | #include "ShellTree.h" |
|---|
| 33 | #include "ChildFrame.h" |
|---|
| 34 | |
|---|
| 35 | class CMainFrame : public CFrameWnd |
|---|
| 36 | { |
|---|
| 37 | |
|---|
| 38 | protected: // create from serialization only |
|---|
| 39 | CMainFrame(); |
|---|
| 40 | DECLARE_DYNCREATE(CMainFrame) |
|---|
| 41 | |
|---|
| 42 | CChildFrame *m_pwndChild; |
|---|
| 43 | |
|---|
| 44 | CGfxSplitterWnd m_wndSplitter; |
|---|
| 45 | CGfxOutBarCtrl m_wndBar; |
|---|
| 46 | |
|---|
| 47 | CImageList m_imaLarge; |
|---|
| 48 | CImageList m_imaSmall; |
|---|
| 49 | CBitmap m_bmToolbarHi; |
|---|
| 50 | |
|---|
| 51 | CShellTreeCtrl m_wndTree; |
|---|
| 52 | |
|---|
| 53 | int m_iLastActiveItem; |
|---|
| 54 | |
|---|
| 55 | // Attributes |
|---|
| 56 | public: |
|---|
| 57 | |
|---|
| 58 | // Operations |
|---|
| 59 | public: |
|---|
| 60 | void SetInfoText(LPCTSTR info, BOOL setTitle = TRUE); |
|---|
| 61 | |
|---|
| 62 | // Overrides |
|---|
| 63 | // ClassWizard generated virtual function overrides |
|---|
| 64 | //{{AFX_VIRTUAL(CMainFrame) |
|---|
| 65 | public: |
|---|
| 66 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs); |
|---|
| 67 | protected: |
|---|
| 68 | virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); |
|---|
| 69 | //}}AFX_VIRTUAL |
|---|
| 70 | |
|---|
| 71 | // Implementation |
|---|
| 72 | public: |
|---|
| 73 | virtual ~CMainFrame(); |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | #ifdef _DEBUG |
|---|
| 77 | virtual void AssertValid() const; |
|---|
| 78 | virtual void Dump(CDumpContext& dc) const; |
|---|
| 79 | #endif |
|---|
| 80 | |
|---|
| 81 | protected: // control bar embedded members |
|---|
| 82 | CStatusBar m_wndStatusBar; |
|---|
| 83 | CAlphaToolBar m_wndToolBar; |
|---|
| 84 | CReBar m_wndReBar; |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | // Generated message map functions |
|---|
| 88 | protected: |
|---|
| 89 | //{{AFX_MSG(CMainFrame) |
|---|
| 90 | afx_msg void OnSysCommand( UINT nID, LPARAM lParam ); |
|---|
| 91 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); |
|---|
| 92 | afx_msg void OnViewInfoBar(); |
|---|
| 93 | afx_msg void OnUpdateViewInfoBar(CCmdUI* pCmdUI); |
|---|
| 94 | afx_msg void OnDestroy(); |
|---|
| 95 | //}}AFX_MSG |
|---|
| 96 | afx_msg LRESULT OnOutbarNotify(WPARAM wParam, LPARAM lParam); |
|---|
| 97 | DECLARE_MESSAGE_MAP() |
|---|
| 98 | }; |
|---|
| 99 | |
|---|
| 100 | ///////////////////////////////////////////////////////////////////////////// |
|---|
| 101 | |
|---|
| 102 | //{{AFX_INSERT_LOCATION}} |
|---|
| 103 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 104 | |
|---|
| 105 | #endif // !defined(AFX_MAINFRM_H__70E9C858_F0D1_11D2_BBF3_00105AAF62C4__INCLUDED_) |
|---|