summaryrefslogtreecommitdiff
path: root/xfa_test/FormFiller_Test/FX_SplitterWnd.h
blob: 94893c971923787d7b04fa5db9255f9c28cb387f (plain)
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
// FX_SplitterWnd.h: interface for the CFX_SplitterWnd class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FX_SPLITTERWND_H__4BF45CD9_0C9D_4223_9D0E_9ECA148F49FB__INCLUDED_)
#define AFX_FX_SPLITTERWND_H__4BF45CD9_0C9D_4223_9D0E_9ECA148F49FB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CFX_SplitterWnd : public CSplitterWnd
{
public:
	CFX_SplitterWnd();
	virtual ~CFX_SplitterWnd();

public:
	virtual	void	OnDrawSplitter(CDC *pDC,ESplitType nType,const CRect &rectArg);
	virtual	void	RecalcLayout();
	static	void	DeferClientPos(AFX_SIZEPARENTPARAMS *lpLayout,CWnd *pWnd,int x,int y,int cx,int cy,BOOL bScrollBar);
	static	void	LayoutRowCol(CSplitterWnd::CRowColInfo *pInfoArray,int nMax,int nSize,int nSizeSplitter);
	void			LockBar(BOOL bState=TRUE){m_bBarLocked=bState;}
	void			HideColumn(int nCol);
	void			ShowColumn();

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFX_SplitterWnd)
	//}}AFX_VIRTUAL

	// Generated message map functions
protected:
	//{{AFX_MSG(CFX_SplitterWnd)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	BOOL	m_bBarLocked;
	int		m_nHidedCol;

};

#endif // !defined(AFX_FX_SPLITTERWND_H__4BF45CD9_0C9D_4223_9D0E_9ECA148F49FB__INCLUDED_)