📄 splitdialog.h
字号:
/////////////////////////////////////////////////////////////////////////////
#if !defined(_SPLITDIALOG_H_INCLUDED_)
#define _SPLITDIALOG_H_INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SplitDialog.h : header file
//
//使用之必须继承它生成新Dialog
//没试验成功
/////////////////////////////////////////////////////////////////////////////
// CSplitDialog dialog
#include "Pane.h"
class CSplitDialog : public CDialog
{
// Construction
public:
CSplitDialog(CWnd* pParent = NULL);
CSplitDialog(UINT nIDTemplate, CWnd* pParent = NULL);
~CSplitDialog();
CPane *m_pMainPane; //主面板Pane
void Initialize();
CPane *CreatePane(int nSplitType, CPane *pParent = NULL, int nWhich = 0, BOOL bSizeableControls = TRUE);
BOOL SetPaneWnd(CPane *pPane, CWnd *pWnd, int nWhich, int minWidth = 10, int minHeight = 10, int Width = 0, int Height = 0);
BOOL ShowPane(CPane *pPane, BOOL bShow = TRUE, int nWhich = 0);
void SetMainRect(RECT rect);
void SetMainRect(int X, int Y, int nWidth, int nHeight);
void SetTopOffset(int topOffset);
void SetLeftOffset(int leftOffset);
void SetRightOffset(int rightOffset);
void SetBottomOffset(int bottomOffset);
BOOL m_bMovingSplitter; //Needed to know when we are sizing the splitter
CPane * m_movingPane; //Needed when sizing the splitter to keep track of the pane being sized
RECT m_OffsetRect; //this holds the offsets from the dialog borders
//{{AFX_DATA(CSplitDialog)
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSplitDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSplitDialog)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnSizing( UINT nSide, LPRECT lpRect);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(_SPLITDIALOG_H_INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -