| 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: SpikeViewProperties.cpp,v 1.1 2006/02/02 07:33:27 orrisroot Exp $ */ |
| 23 |
|
| 24 |
// SpikeViewProperties.cpp : implementation of the CSpikeViewProperties class |
| 25 |
// |
| 26 |
|
| 27 |
#include "stdafx.h" |
| 28 |
#include "NeuroManager.h" |
| 29 |
#include "SpikeViewProperties.h" |
| 30 |
|
| 31 |
|
| 32 |
// CSpikeViewProperties |
| 33 |
|
| 34 |
IMPLEMENT_DYNCREATE(CSpikeViewProperties, CFormView) |
| 35 |
|
| 36 |
CSpikeViewProperties::CSpikeViewProperties() |
| 37 |
: CFormView(CSpikeViewProperties::IDD) |
| 38 |
{ |
| 39 |
EnableActiveAccessibility(); |
| 40 |
EnableAutomation(); |
| 41 |
} |
| 42 |
|
| 43 |
CSpikeViewProperties::~CSpikeViewProperties() |
| 44 |
{ |
| 45 |
} |
| 46 |
|
| 47 |
void CSpikeViewProperties::OnFinalRelease() |
| 48 |
{ |
| 49 |
// When the last reference for an automation object is released |
| 50 |
// OnFinalRelease is called. The base class will automatically |
| 51 |
// deletes the object. Add additional cleanup required for your |
| 52 |
// object before calling the base class. |
| 53 |
|
| 54 |
CFormView::OnFinalRelease(); |
| 55 |
} |
| 56 |
|
| 57 |
void CSpikeViewProperties::DoDataExchange(CDataExchange* pDX) |
| 58 |
{ |
| 59 |
CFormView::DoDataExchange(pDX); |
| 60 |
} |
| 61 |
|
| 62 |
BEGIN_MESSAGE_MAP(CSpikeViewProperties, CFormView) |
| 63 |
END_MESSAGE_MAP() |
| 64 |
|
| 65 |
BEGIN_DISPATCH_MAP(CSpikeViewProperties, CFormView) |
| 66 |
END_DISPATCH_MAP() |
| 67 |
|
| 68 |
// Note: we add support for IID_INeuroManager to support typesafe binding |
| 69 |
// from VBA. This IID must match the GUID that is attached to the |
| 70 |
// dispinterface in the .IDL file. |
| 71 |
|
| 72 |
// {F713FD60-08B9-4ACB-A9C0-0F9BB1DC641A} |
| 73 |
static const IID IID_ISpikeViewProperties = |
| 74 |
{ 0xF713FD60, 0x8B9, 0x4ACB, { 0xA9, 0xC0, 0xF, 0x9B, 0xB1, 0xDC, 0x64, 0x1A } }; |
| 75 |
|
| 76 |
BEGIN_INTERFACE_MAP(CSpikeViewProperties, CFormView) |
| 77 |
INTERFACE_PART(CSpikeViewProperties, IID_ISpikeViewProperties, Dispatch) |
| 78 |
END_INTERFACE_MAP() |
| 79 |
|
| 80 |
|
| 81 |
// CSpikeViewProperties diagnostics |
| 82 |
|
| 83 |
#ifdef _DEBUG |
| 84 |
void CSpikeViewProperties::AssertValid() const |
| 85 |
{ |
| 86 |
CFormView::AssertValid(); |
| 87 |
} |
| 88 |
|
| 89 |
void CSpikeViewProperties::Dump(CDumpContext& dc) const |
| 90 |
{ |
| 91 |
CFormView::Dump(dc); |
| 92 |
} |
| 93 |
#endif //_DEBUG |
| 94 |
|
| 95 |
|
| 96 |
// CSpikeViewProperties message handlers |