| 1 | // ChildFrame.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 | |
|---|
| 22 | #if !defined(AFX_CHILDFRAME_H__55C18AF0_F175_11D2_BBF3_00105AAF62C4__INCLUDED_) |
|---|
| 23 | #define AFX_CHILDFRAME_H__55C18AF0_F175_11D2_BBF3_00105AAF62C4__INCLUDED_ |
|---|
| 24 | |
|---|
| 25 | #if _MSC_VER > 1000 |
|---|
| 26 | #pragma once |
|---|
| 27 | #endif // _MSC_VER > 1000 |
|---|
| 28 | |
|---|
| 29 | #include "EraserUI\InfoBar.h" |
|---|
| 30 | #include "EraserView.h" |
|---|
| 31 | #include "SchedulerView.h" |
|---|
| 32 | #include "ShellListView.h" |
|---|
| 33 | |
|---|
| 34 | ///////////////////////////////////////////////////////////////////////////// |
|---|
| 35 | // CChildFrame frame |
|---|
| 36 | |
|---|
| 37 | class CChildFrame : public CFrameWnd |
|---|
| 38 | { |
|---|
| 39 | DECLARE_DYNCREATE(CChildFrame) |
|---|
| 40 | protected: |
|---|
| 41 | CChildFrame(); // protected constructor used by dynamic creation |
|---|
| 42 | |
|---|
| 43 | // Attributes |
|---|
| 44 | public: |
|---|
| 45 | |
|---|
| 46 | // Operations |
|---|
| 47 | public: |
|---|
| 48 | CEraserView *m_pEraserView; |
|---|
| 49 | CSchedulerView *m_pSchedulerView; |
|---|
| 50 | CShellListView *m_pExplorerView; |
|---|
| 51 | |
|---|
| 52 | int m_iActiveViewID; |
|---|
| 53 | CInfoBar m_InfoBar; |
|---|
| 54 | |
|---|
| 55 | void SwitchToForm(int nForm); |
|---|
| 56 | |
|---|
| 57 | // Overrides |
|---|
| 58 | // ClassWizard generated virtual function overrides |
|---|
| 59 | //{{AFX_VIRTUAL(CChildFrame) |
|---|
| 60 | protected: |
|---|
| 61 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs); |
|---|
| 62 | virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); |
|---|
| 63 | //}}AFX_VIRTUAL |
|---|
| 64 | |
|---|
| 65 | // Implementation |
|---|
| 66 | protected: |
|---|
| 67 | virtual ~CChildFrame(); |
|---|
| 68 | |
|---|
| 69 | // Generated message map functions |
|---|
| 70 | //{{AFX_MSG(CChildFrame) |
|---|
| 71 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); |
|---|
| 72 | afx_msg BOOL OnEraseBkgnd(CDC* pDC); |
|---|
| 73 | afx_msg void OnDestroy(); |
|---|
| 74 | //}}AFX_MSG |
|---|
| 75 | DECLARE_MESSAGE_MAP() |
|---|
| 76 | }; |
|---|
| 77 | |
|---|
| 78 | ///////////////////////////////////////////////////////////////////////////// |
|---|
| 79 | |
|---|
| 80 | //{{AFX_INSERT_LOCATION}} |
|---|
| 81 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 82 | |
|---|
| 83 | #endif // !defined(AFX_CHILDFRAME_H__55C18AF0_F175_11D2_BBF3_00105AAF62C4__INCLUDED_) |
|---|