-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChildFrm.h
66 lines (52 loc) · 1.83 KB
/
ChildFrm.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// ChildFrm.h : interface of the CChildFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHILDFRM_H__FFCA2B8A_F9C5_11D4_A6F1_0050CE184C9B__INCLUDED_)
#define AFX_CHILDFRM_H__FFCA2B8A_F9C5_11D4_A6F1_0050CE184C9B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CChildFrame : public CMDIChildWnd
{
DECLARE_DYNCREATE(CChildFrame)
public:
CChildFrame();
// Attributes
protected:
CSplitterWndEx m_wndSplitter;
// Operations
public:
INT GetRowCount() { return m_wndSplitter.GetRowCount(); }
INT GetColumnCount() { return m_wndSplitter.GetColumnCount(); }
INT GetPaneCount() { return GetRowCount() * GetColumnCount(); }
CWnd * GetNeighborPane(CWnd * pWnd);
void SetScrollPosSyncAllPanes(CWnd * pWnd, INT nPosX, INT nPosY);
void UpdateAllPanesInTheSameRow(CWnd * pWnd);
void UpdateAllPanesSharingScrollBar(CWnd * pWnd);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChildFrame)
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CChildFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CChildFrame)
afx_msg void OnDestroy();
afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnWindowClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHILDFRM_H__FFCA2B8A_F9C5_11D4_A6F1_0050CE184C9B__INCLUDED_)