⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 custsplt.h

📁 VC分割窗口源程序
💻 H
字号:
#ifndef __CUSTSPLT_H__
#define __CUSTSPLT_H__

class CCustSplitterWnd: public CSplitterWnd
{
DECLARE_DYNAMIC(CCustSplitterWnd)
    int m_nMapMode; 
    SIZE m_sizeTotal, m_sizePage, m_sizeLine;
    BOOL m_bSplit;
public:
    BOOL Create( CWnd* pParentWnd, int nMaxRows, int nMaxCols, SIZE sizeMin, CCreateContext* pContext, DWORD dwStyle = WS_CHILD | WS_VISIBLE |WS_HSCROLL | WS_VSCROLL | SPLS_DYNAMIC_SPLIT, UINT nID = AFX_IDW_PANE_FIRST );
  
    CCustSplitterWnd(){m_bSplit=TRUE;};
	afx_msg void OnSplit();
	afx_msg void OnUpdateSplit(CCmdUI* pCmdUI);
    BOOL &SplitWindow(void){return m_bSplit;};
#ifndef _WIN32
	void SetScrollStyle( DWORD   );
#endif
    virtual BOOL DoKeyboardSplit( );


// Generated message map functions
protected:
    //{{AFX_MSG(CCustSplitterWnd)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

#endif

⌨️ 快捷键说明

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