| 1 |
/* --------------------------------------------------------------------- */ |
| 2 |
/* NeuroManager - A spike train analysis tool */ |
| 3 |
/* Copyright (c) 2005-2006 RIKEN, Japan. All rights reserved. */ |
| 4 |
/* http://satellite.sourceforge.jp/ */ |
| 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; see the file COPYING.txt. If not, write */ |
| 18 |
/* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth */ |
| 19 |
/* Floor, Boston, MA 02110-1301, USA. */ |
| 20 |
/* --------------------------------------------------------------------- */ |
| 21 |
|
| 22 |
/* $Id: NeuroManagerView.h,v 1.1 2006/02/04 13:38:16 orrisroot Exp $ */ |
| 23 |
|
| 24 |
// NeuroManagerView.h : interface of the CNeuroManagerView class |
| 25 |
// |
| 26 |
|
| 27 |
#pragma once |
| 28 |
|
| 29 |
class CNeuroManagerView : public CView |
| 30 |
{ |
| 31 |
protected: |
| 32 |
// create from serialization only |
| 33 |
CNeuroManagerView(); |
| 34 |
DECLARE_DYNCREATE( CNeuroManagerView ) |
| 35 |
|
| 36 |
// Attributes |
| 37 |
public: |
| 38 |
CNeuroManagerDoc* GetDocument() const; |
| 39 |
|
| 40 |
// Operations |
| 41 |
public: |
| 42 |
|
| 43 |
// Overrides |
| 44 |
public: |
| 45 |
virtual void OnDraw( CDC* pDC ); // overridden to draw this view |
| 46 |
virtual BOOL PreCreateWindow( CREATESTRUCT& cs ); |
| 47 |
protected: |
| 48 |
virtual BOOL OnPreparePrinting( CPrintInfo* pInfo ); |
| 49 |
virtual void OnBeginPrinting( CDC* pDC, CPrintInfo* pInfo ); |
| 50 |
virtual void OnEndPrinting( CDC* pDC, CPrintInfo* pInfo ); |
| 51 |
virtual void OnInitialUpdate(); |
| 52 |
|
| 53 |
// Implementation |
| 54 |
public: |
| 55 |
virtual ~CNeuroManagerView(); |
| 56 |
#ifdef _DEBUG |
| 57 |
|
| 58 |
virtual void AssertValid() const; |
| 59 |
virtual void Dump( CDumpContext& dc ) const; |
| 60 |
#endif |
| 61 |
|
| 62 |
protected: |
| 63 |
|
| 64 |
// Generated message map functions |
| 65 |
protected: |
| 66 |
DECLARE_MESSAGE_MAP() |
| 67 |
afx_msg BOOL OnEraseBkgnd( CDC* pDC ); |
| 68 |
afx_msg void OnDestroy(); |
| 69 |
|
| 70 |
private: |
| 71 |
BOOL m_bInitilized; // initialized flag for background brush and dynamic menu |
| 72 |
CBrush m_BkgndBrush; // new background brush |
| 73 |
HBRUSH m_hOldBkgndBrush; // previous background brush |
| 74 |
}; |
| 75 |
|
| 76 |
#ifndef _DEBUG // debug version in NeuroManagerView.cpp |
| 77 |
inline CNeuroManagerDoc* CNeuroManagerView::GetDocument() const |
| 78 |
{ |
| 79 |
return reinterpret_cast<CNeuroManagerDoc*>( m_pDocument ); |
| 80 |
} |
| 81 |
#endif |
| 82 |
|