Click here to Skip to main content
15,892,059 members
Articles / Desktop Programming / MFC

Understanding CDockablePane

Rate me:
Please Sign up or sign in to vote.
4.95/5 (80 votes)
19 Aug 2015Apache12 min read 362.5K   11.8K   134  
A good reference for CDockablePane
/* 
 * Developed by Huzifa Terkawi 
 * http://www.codeproject.com/Members/huzifa30
 * All permission granted to use this code as long as you retain this notice
 * and refere to orginal Material when part of this code is re-puplished
*/
#ifndef SPLITE_PANE_H_F6D215EE35D24DD4BA5351ECDC86E4FD
#define SPLITE_PANE_H_F6D215EE35D24DD4BA5351ECDC86E4FD

class CPaneSplitter : public CSplitterWndEx
{
public :
	BOOL AddWindow(int row, int col, CWnd* pWin,CString clsName, 
	DWORD dwStyle,DWORD dwStyleEx, SIZE sizeInit);
};

class CSplitePane : public CDockablePane
{
	DECLARE_DYNAMIC(CSplitePane)
	DECLARE_MESSAGE_MAP()
public:
	CSplitePane();
	virtual ~CSplitePane();
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lp);
	afx_msg void OnSize(UINT nType,int cx,int cy);
	afx_msg void OnToolbarCmd(UINT cmd);
private :
	CMFCShellTreeCtrl m_wndTree ;
	CMFCShellListCtrl m_wndList ;
	CPaneSplitter m_wndSplitter;
	CPaneToolBar m_wndToolbar;
};

#endif 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Software Developer (Senior)
Syrian Arab Republic Syrian Arab Republic
C++ , MFC , Win32 professional Developer.

Comments and Discussions