|
// SampleDockingWindow.h: interface for the CSampleDockingWindow class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SAMPLEDOCKINGWINDOW_H__4C41BD02_6310_48F1_8FF9_1E22A9E5E293__INCLUDED_)
#define AFX_SAMPLEDOCKINGWINDOW_H__4C41BD02_6310_48F1_8FF9_1E22A9E5E293__INCLUDED_
#include <ExtDockingWindow.h>
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSampleDockingWindow :
public dockwins::CTitleDockingWindowImpl< CSampleDockingWindow,CWindow,dockwins::COutlookLikeTitleDockingWindowTraits>
{
typedef CSampleDockingWindow thisClass;
typedef dockwins::CTitleDockingWindowImpl< CSampleDockingWindow,CWindow,dockwins::COutlookLikeTitleDockingWindowTraits> baseClass;
public:
DECLARE_WND_CLASS(_T("CSampleDockingWindow"))
BEGIN_MSG_MAP(thisClass)
MESSAGE_HANDLER(WM_PAINT, OnPaint)
CHAIN_MSG_MAP(baseClass)
END_MSG_MAP()
LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CPaintDC dc(m_hWnd);
RECT rc;
GetClientRect(&rc);
dc.FillRect(&rc, (HBRUSH)LongToPtr(COLOR_WINDOW + 1));
dc.SetBkMode(TRANSPARENT);
dc.DrawText(_T("SampleDockingWindow"),-1,&rc, DT_END_ELLIPSIS | DT_CENTER | DT_VCENTER | DT_SINGLELINE );
return 0;
}
};
#endif // !defined(AFX_SAMPLEDOCKINGWINDOW_H__4C41BD02_6310_48F1_8FF9_1E22A9E5E293__INCLUDED_)
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.