|
//
// bctoolbar.h
//
// By Jan van den Baard.
//
// "Brainchild Custom Editor Control" demonstration program.
// This code is public domain, use and abuse as you desire.
//
class BCToolbar : public ClsToolbar
{
_NO_COPY( BCToolbar );
public:
// Construction, destruction...
BCToolbar();
virtual ~BCToolbar();
// Implementation.
BOOL Create( ClsWindow *pParent, ClsMRU *pMRU );
inline BOOL& OldStyle() { return ( BOOL& )m_bOldStyle; }
protected:
// Overidables.
virtual LRESULT OnDropDown( LPNMTOOLBAR pToolbar, BOOL &bNotifyParent );
virtual LRESULT OnGetInfoTip( LPNMTBGETINFOTIP pInfoTip, BOOL& bNotifyParent );
virtual LRESULT OnCustomDraw( LPNMCUSTOMDRAW pCustomDraw, BOOL& bNotifyParent );
virtual LRESULT OnPaint( ClsDC *pDC );
virtual LRESULT WindowProc( UINT uMsg, WPARAM wParam, LPARAM lParam );
// Helpers.
void RedrawSeparators();
// Data.
static TBBUTTON m_tbTools[ 29 ];
ClsBitmap m_Tools;
ClsMRU *m_pMRU;
BOOL m_bOldStyle;
};
|
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.
I have been programming for a hobby since 1985. I have started programming on the C= 64. After that I migrated to the C= Amiga which I traded in for a PC back in 1997 I believe. Back in 2000 I decided to lose a hobby and start developing software for a living.
Currently I am working mainly in developing software for building security and access control systems.