Click here to Skip to main content
15,886,799 members
Articles / Desktop Programming / MFC

Understanding CDockablePane

Rate me:
Please Sign up or sign in to vote.
4.95/5 (79 votes)
19 Aug 2015Apache12 min read 359.8K   11.8K   133  
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 OUTPUT_WND_H_3803BB2F69A8434B82C0207753E81628
#define OUTPUT_WND_H_3803BB2F69A8434B82C0207753E81628

class COutputList : public CListBox
{
	DECLARE_MESSAGE_MAP()
public:
	COutputList();
	virtual ~COutputList();

protected:
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnEditCopy();
	afx_msg void OnEditClear();
	afx_msg void OnViewOutput();
};
/**************************************************************************/
class COutputWnd : public CDockablePane
{
	DECLARE_MESSAGE_MAP()
public:
	COutputWnd();
	virtual ~COutputWnd();
protected:
	CFont m_Font;
	CMFCTabCtrl	m_wndTabs;
	COutputList m_wndOutputBuild;
	COutputList m_wndOutputDebug;
	COutputList m_wndOutputFind;

protected:
	void FillBuildWindow();
	void FillDebugWindow();
	void FillFindWindow();
	void AdjustHorzScroll(CListBox& wndListBox);

protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
};

#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