📄 splitterxy.h
字号:
#if !defined(AFX_SPLITTERXY_H__3EB47FBC_5AF5_4208_AFC6_76C5FEC38B75__INCLUDED_)#define AFX_SPLITTERXY_H__3EB47FBC_5AF5_4208_AFC6_76C5FEC38B75__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// SplitterXY.h : header file///////////////////////////////////////////////////////////////////////////////// RxSplitterX window#define SPLIT_SIZE 3class RxSplitterX : public CWnd{// Constructionpublic: RxSplitterX();// Attributespublic: BOOL m_bIsFixed; CBrush m_brFace; CWnd *m_pParentWnd; // 何葛 芒狼 林家 沥焊 CDWordArray m_leftIDs, m_rightIDs; // 哭率 棺 坷弗率狼 芒(View) ID 沥焊 int m_nMinLeft, m_nMinRight; // 哭率 棺 坷弗率狼 芒 弥家 农扁 CPoint m_ptOldPoint; CSize m_szBar; CRect m_rcOrg, m_rcCur, m_rcOld;// Operationspublic: BOOL BindToView(CWnd *pWnd, DWORD nMinLeft, DWORD nMinRight); BOOL AttachAsLeftPane(DWORD ctrlID); BOOL AttachAsRightPane(DWORD ctrlID); BOOL DetachLeftPane(); BOOL VisibleLeftPane(BOOL bShow); BOOL DetachRightPane(); BOOL VisibleRightPane(BOOL bShow); BOOL Unbind(); BOOL VisibleAllPane(BOOL bShow); void SetMinWidth(int nMinLeft, int nMinRight); BOOL GetMouseClipRect(LPRECT rectClip, CPoint point); void RecalcLayout();// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(RxSplitterX) protected: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void PostNcDestroy(); //}}AFX_VIRTUAL// Implementationpublic: virtual ~RxSplitterX(); // Generated message map functionsprotected: //{{AFX_MSG(RxSplitterX) afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP()};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RxSplitterY windowclass RxSplitterY : public CWnd{// Constructionpublic: RxSplitterY();// Attributespublic: BOOL m_bIsFixed; CBrush m_brFace; CWnd *m_pParentWnd; // 何葛 芒狼 林家 沥焊 CDWordArray m_topIDs, m_bottomIDs; // 哭率 棺 坷弗率狼 芒(View) ID 沥焊 int m_nMinTop, m_nMinBottom; // 哭率 棺 坷弗率狼 芒 弥家 农扁 CPoint m_ptOldPoint; CSize m_szBar; CRect m_rcOrg, m_rcCur, m_rcOld;// Operationspublic: BOOL BindToView(CWnd *pWnd, DWORD nMinTop, DWORD nMinBottom); BOOL AttachAsTopPane(DWORD ctrlID); BOOL AttachAsBottomPane(DWORD ctrlID); BOOL DetachTopPane(); BOOL VisibleTopPane(BOOL bShow); BOOL DetachBottomPane(); BOOL VisibleBottomPane(BOOL bShow); BOOL Unbind(); BOOL VisibleAllPane(BOOL bShow); void SetMinHeight(int nMinTop, int nMinBottom); BOOL GetMouseClipRect(LPRECT rectClip, CPoint point); void RecalcLayout();// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(RxSplitterY) protected: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void PostNcDestroy(); //}}AFX_VIRTUAL// Implementationpublic: virtual ~RxSplitterY(); // Generated message map functionsprotected: //{{AFX_MSG(RxSplitterY) afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_SPLITTERXY_H__3EB47FBC_5AF5_4208_AFC6_76C5FEC38B75__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -