Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/neuromanager/neuromanager/ListCtrlEdit.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sat Feb 4 13:38:16 2006 UTC (18 years, 2 months ago) by orrisroot
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-chdr
moved main application sources to neuromanager directory.

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: ListCtrlEdit.h,v 1.2 2006/01/24 02:01:12 orrisroot Exp $ */
23
24 // ListCtrlEdit.h : interface of the CListCtrlEdit class
25 //
26 #pragma once
27
28 // CEditInplace : edit label for CListCtrlEdit
29
30 class CEditInplace : public CEdit
31 {
32 public:
33 CEditInplace();
34 virtual ~CEditInplace();
35 // messages
36 protected:
37 DECLARE_MESSAGE_MAP()
38 protected:
39 afx_msg UINT OnGetDlgCode();
40 afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
41 };
42
43 // CListCtrlEdit
44
45 class CListCtrlEdit : public CListCtrl
46 {
47 DECLARE_DYNAMIC( CListCtrlEdit )
48
49 public:
50 CListCtrlEdit();
51 virtual ~CListCtrlEdit();
52 // user defined variable
53 private:
54 enum {
55 IDC_LIST_CTRL_EDIT = 15493,
56 };
57 BOOL m_bEdit;
58 CEditInplace m_editInline;
59 int m_iItem;
60 int m_iSubItem;
61 DWORD m_orgStyle;
62 // user defined methods
63 private:
64 void GetEditRect( int iItem, int iSubItem, CRect &rct );
65 void CancelEdit();
66 public:
67 BOOL PrepareLabelEdit( NMLVDISPINFO *pDispInfo );
68 void BeginLabelEdit( NMLVDISPINFO* pDispInfo, LRESULT* pResult );
69 // messages
70 protected:
71 DECLARE_MESSAGE_MAP()
72 public:
73 afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
74 afx_msg void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
75 afx_msg void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
76 afx_msg void OnKillFocusEdit();
77 };
78
79

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26