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

📄 wxssplitterwindow.h

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 H
字号:
#ifndef WXSSPLITTERWINDOWEX_H
#define WXSSPLITTERWINDOWEX_H

#include <wx/panel.h>
#include <wx/splitter.h>
#include <wx/event.h>

/** This class extends behaviour of standard splitter window
 *  which fixes some bugs with them when using wxDockIt
 */
class wxsSplitterWindowEx : public wxPanel
{
	public:
	
        /** Ctor */
		wxsSplitterWindowEx(wxWindow* Parent);
		
		/** Dctor */
		virtual ~wxsSplitterWindowEx();
		
		/** Function splitting window */
		void Split(wxWindow* Top,wxWindow* Bottom,int SashPosition = 0);
		
		/** Getting splitter window associated with this object */
		inline wxSplitterWindow* GetSplitter() { return Splitter; }
    
    private:
    
        void OnSize(wxSizeEvent& event);
        void OnSplitterChanging(wxSplitterEvent& event);
        void OnSplitterChanged(wxSplitterEvent& event);
        
        int SplitterFixup(int ProposedPosition);
        
        wxSplitterWindow* Splitter;
        int SplitPosition;
        DECLARE_EVENT_TABLE()
};

#endif // WXSSPLITTERWINDOW_H

⌨️ 快捷键说明

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