00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #if !defined(AFX_Splitter_H__61D2F7E7_7AAA_11D1_9F4C_008029E98A75__INCLUDED_)
00020 #define AFX_Splitter_H__61D2F7E7_7AAA_11D1_9F4C_008029E98A75__INCLUDED_
00021
00022 #if _MSC_VER >= 1000
00023 #pragma once
00024 #endif
00025
00026
00027 class CSplitter : public CSplitterWnd
00028 {
00029
00030 public:
00031 CSplitter();
00032
00033 private:
00034 BOOL m_bBarLocked;
00035
00036 public:
00037 BOOL bSplitterVisible;
00038 BOOL IsBarLocked(){return m_bBarLocked;}
00039 void LockBar(BOOL bState=TRUE){m_bBarLocked=bState;}
00040 BOOL ReplaceView(int row, int col,CRuntimeClass * pViewClass,SIZE size);
00041
00042
00043
00044
00045
00046
00047 public:
00048 virtual ~CSplitter();
00049
00050 protected:
00051
00052 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00053 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00054 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00055 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00056 afx_msg void OnPaint();
00057
00058 virtual void OnDrawSplitter( CDC* pDC, ESplitType nType, const CRect& rect );
00059
00060
00061 DECLARE_MESSAGE_MAP()
00062 };
00063
00065
00066
00067
00068 #endif // !defined(AFX_Splitter_H__61D2F7E7_7AAA_11D1_9F4C_008029E98A75__INCLUDED_)