📄 split.h
字号:
#if !defined(AFX_SPLIT_H__FB80A102_0B56_4847_B2AD_C418FE1D9C9D__INCLUDED_)
#define AFX_SPLIT_H__FB80A102_0B56_4847_B2AD_C418FE1D9C9D__INCLUDED_
#include "stdafx.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Split.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSplit window
class CSplit : public CStatic
{
// Construction
public:
CSplit();
// Attributes
public:
CWnd *TForm;//分隔线所在的窗口变量}
CWnd *FAOwner ; ////{分隔线的拥有者变量}
CWnd *FSplitControl, *FSizeTarget; ////{分隔线及要改变的目标控件变量}
bool FVertical ; ////{分隔线方向变量}
CPoint FSplit ; ////{分隔线坐标变量}
bool Sizing;
// Operations
public:
void BeginSizing(); //{移动前初始化}
void ChangeSizing( int X, int Y); //{改变分隔线位置}
bool GetSizing(); ////{分隔线是否可移动属性}
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSplit)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSplit();
// Generated message map functions
private:
void GetComponents(); //{获得分隔线和目标实例}
void DrawSizingLine(); //{画分隔线阴影}
void EndSizing(); //{终止移动}
protected:
//{{AFX_MSG(CSplit)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(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_SPLIT_H__FB80A102_0B56_4847_B2AD_C418FE1D9C9D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -