dlgsplitter.h

来自「一个关于局域网简单抓包工具」· C头文件 代码 · 共 105 行

H
105
字号
// DlgSplitterWnd.h : header file
//

#if !defined(AFX_DLGSPLITTERWND_H__INCLUDED_)
#define AFX_DLGSPLITTERWND_H__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDlgSplitterWnd Splitter

class CDlgSplitterWnd : public CWnd
{
// Construction
public:
	CDlgSplitterWnd();			// standard constructor
	virtual ~CDlgSplitterWnd();
	BOOL Create(CWnd* pParentWnd, int nMaxRows, int nMaxCols, SIZE sizeMin, CCreateContext* pContext, DWORD dwStyle, UINT nID);
	BOOL CreateStatic(CWnd* pParentWnd, int nRows, int nCols, DWORD dwStyle, UINT nID);
	BOOL CreateCommon(CWnd* pParentWnd, SIZE sizeMin, DWORD dwStyle, UINT nID);
	BOOL CreateView(int row, int col, CRuntimeClass* pViewClass, SIZE sizeInit, CCreateContext* pContext);
	BOOL CreateScrollBarCtrl(DWORD dwStyle, UINT nID);
	void DeleteView(int row, int col);

	int IdFromRowCol(int row, int col) const;
	CWnd* GetPane(int row, int col) const;
	BOOL IsChildPane(CWnd* pWnd, int* pRow, int* pCol);
	void GetRowInfo(int row, int& cyCur, int& cyMin) const;
	void SetRowInfo(int row, int cyIdeal, int cyMin);
	void GetColumnInfo(int col, int& cxCur, int& cxMin) const;
	void SetColumnInfo(int col, int cxIdeal, int cxMin);
	DWORD GetScrollStyle() const;
	void SetScrollStyle(DWORD dwStyle);
	BOOL SplitRow(int cyBefore);
	BOOL SplitColumn(int cxBefore);
	void DeleteRow(int rowDelete);
	void DeleteColumn(int colDelete);
	void GetInsideRect(CRect& rect) const;
	void StartTracking(int ht);
	void TrackRowSize(int y, int row);
	void TrackColumnSize(int x, int col);
	void StopTracking(BOOL bAccept);
	void GetHitRect(int ht, CRect& rectHit);
	int HitTest(CPoint pt) const;
	BOOL DoKeyboardSplit();
	CWnd* GetSizingParent();
	void RecalcLayout();
	void DrawAllSplitBars(CDC* pDC, int cxInside, int cyInside);
	void SetSplitCursor(int ht);
	BOOL DoScroll(CView* pViewFrom, UINT nScrollCode, BOOL bDoScroll);
	BOOL DoScrollBy(CView* pViewFrom, CSize sizeScroll, BOOL bDoScroll);
	BOOL CanActivateNext(BOOL);
	void ActivateNext(BOOL bPrev);
	void SetActivePane(int row, int col, CWnd* pWnd);
	CWnd* GetActivePane(int* pRow, int* pCol);
	void AssertValid() const;
	void Dump(CDumpContext& dc) const;

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgSplitterWnd)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CDlgSplitterWnd)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	afx_msg void OnPaint();
	//afx_msg HCURSOR OnQueryDragIcon();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpcs);
	afx_msg void OnDrawSplitter(CDC* pDC, ESplitType nType, const CRect& rectArg);
	AFX_STATIC int AFXAPI _AfxCanSplitRowCol(CRowColInfo* pInfoBefore, int nBeforeSize, int nSizeSplitter);
	AFX_STATIC void AFXAPI _AfxLayoutRowCol(CDlgSplitterWnd::CRowColInfo* pInfoArray, int nMax, int nSize, int nSizeSplitter);
	AFX_STATIC void AFXAPI _AfxDeferClientPos(AFX_SIZEPARENTPARAMS* lpLayout, CWnd* pWnd, int x, int y, int cx, int cy, BOOL bScrollBar);
	afx_msg void OnInvertTracker(const CRect& rect);
	afx_msg void OnDisplayChange();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnMouseWheel(UINT fFlags, short zDelta, CPoint point);
	afx_msg void OnMouseMove(UINT /*nFlags*/, CPoint pt);
	afx_msg void OnLButtonDown(UINT /*nFlags*/, CPoint pt);
	afx_msg void OnLButtonDblClk(UINT /*nFlags*/, CPoint pt);
	afx_msg void OnLButtonUp(UINT /*nFlags*/, CPoint /*pt*/);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnKeyDown(UINT nChar, UINT /*nRepCnt*/, UINT /*nFlags*/);
	afx_msg BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	afx_msg BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGSPLITTERWND_H__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?