Serious-Engine/Sources/SeriousSkaStudio/ModelTreeCtrl.h

65 lines
1.9 KiB
C
Raw Normal View History

2016-03-12 01:20:51 +01:00
/* Copyright (c) 2002-2012 Croteam Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
2016-03-11 14:57:17 +01:00
// ModelTreeCtrl.h: interface for the CModelTreeCtrl class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MODELTREECTRL_H__C5D259C2_AD00_11D5_8AB4_00C0262D9BFE__INCLUDED_)
#define AFX_MODELTREECTRL_H__C5D259C2_AD00_11D5_8AB4_00C0262D9BFE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct NodeInfo
{
INDEX ni_iType;
BOOL ni_bSelected;
void *ni_pPtr;
CModelInstance *pmi;
};
class CModelTreeCtrl : public CTreeCtrl
{
public:
CModelTreeCtrl();
// Operations
public:
// Overrides
HTREEITEM hLastSelected;
// Implementation
public:
virtual ~CModelTreeCtrl();
// Generated message map functions
protected:
//{{AFX_MSG(CModelTreeCtrl)
afx_msg void OnSelChanged(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnItemClick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnItemDblclk(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRdblclk(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_MODELTREECTRL_H__C5D259C2_AD00_11D5_8AB4_00C0262D9BFE__INCLUDED_)