-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAW_CMultiViewSplitter.h
44 lines (33 loc) · 1.28 KB
/
AW_CMultiViewSplitter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// AW_CMultiViewSplitter.h: interface for the AW_CMultiViewSplitter class.
//
// Written by Caroline Englebienne of AniWorld, Inc.
// Copyright (c) 2000 AniWorld, Inc.
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_AW_CMULTIVIEWSPLITTER_H__464C08E9_8989_11D4_B4E3_005004D85AA1__INCLUDED_)
#define AFX_AW_CMULTIVIEWSPLITTER_H__464C08E9_8989_11D4_B4E3_005004D85AA1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#pragma warning(disable:4786)
#include <map>
using namespace std;
class AW_CMultiViewSplitter : public CSplitterWnd
{
public:
AW_CMultiViewSplitter();
virtual ~AW_CMultiViewSplitter();
int AddView(int nRow, int nCol, CRuntimeClass * pViewClass,
CCreateContext* pContext);
void ShowView(int nViewID);
CWnd* GetView(int nViewID);
protected:
map<int, long> m_mapViewPane;
map<long, int> m_mapCurrentViews;
map<int, CWnd*> m_mapIDViews;
int m_nIDCounter;
CWnd* GetCurrentView(int nRow, int nCol, int * nCurID);
void SetCurrentView(int nRow, int nCol, int nViewID);
int HideCurrentView(int nRow, int nCol);
void GetPaneFromViewID(int nViewID, CPoint * pane);
};
#endif // !defined(AFX_AW_CMULTIVIEWSPLITTER_H__464C08E9_8989_11D4_B4E3_005004D85AA1__INCLUDED_)