visual_java_demo.zip
bcgcb453d.dll
bcgcb453d.exp
bcgcb453d.lib
edtlibd.dll
edtlibd.exp
edtlibd.lib
file0
USRIMGS.BMP
VisualJava.exe
visual_java_src.zip
BATCH
CLEAN.BAT
MAKEBIN.BAT
MAKEHELP.BAT
RELEASE.BAT
RELUSE.BAT
USE.BAT
BCGLIB
CEXPAND.REG
codetemplates__1.txt
DISTRIB
EDITPAD.TIP
USRIMGS.BMP
EDITPAD.DSP
EDITPAD.DSW
EDTLIB
README.TXT
VisualJava
visual_java_demo1.zip
bcgcb453d.dll
bcgcb453d.exp
bcgcb453d.lib
edtlibd.dll
edtlibd.exp
edtlibd.lib
USRIMGS.BMP
VisualJava.exe
|
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This source code is a part of BCGControlBar library.
// You may use, compile or redistribute it as part of your application
// for free. You cannot redistribute it as a part of a software development
// library without the agreement of the author. If the sources are
// distributed along with the application, you should leave the original
// copyright notes in the source code without any changes.
// This code can be used WITHOUT ANY WARRANTIES on your own risk.
//
// Stas Levin <stas@iet.co.il>
//*******************************************************************************
#if !defined(AFX_BCGOUTLOOKBAR_H__D92D40D4_BD73_11D1_A63F_00A0C93A70EC__INCLUDED_)
#define AFX_BCGOUTLOOKBAR_H__D92D40D4_BD73_11D1_A63F_00A0C93A70EC__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// bcgoutlookbar.h : header file
//
#include "BCGToolbar.h"
#include "BCGToolbarImages.h"
#include "BCGOutlookButton.h"
/////////////////////////////////////////////////////////////////////////////
// CBCGOutlookBar window
class BCGCONTROLBARDLLEXPORT CBCGOutlookBar : public CBCGToolBar
{
DECLARE_DYNAMIC(CBCGOutlookBar)
// Construction
public:
CBCGOutlookBar();
virtual ~CBCGOutlookBar();
// Operations
public:
BOOL AddButton (UINT uiImage, LPCTSTR lpszLabel, UINT iIdCommand);
BOOL AddButton (UINT uiImage, UINT uiLabel, UINT iIdCommand);
BOOL RemoveButton (UINT iIdCommand);
void SetTextColor (COLORREF clrRegText, COLORREF clrSelText = ::GetSysColor (COLOR_WINDOWTEXT));
void SetTransparentColor (COLORREF color);
void SetBackImage (UINT uiImageID);
void SetBackColor (COLORREF color);
void ScrollUp ();
void ScrollDown ();
protected:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCGOutlookBar)
public:
virtual BOOL Create(CWnd* pParentWnd, DWORD dwStyle, UINT nID);
//}}AFX_VIRTUAL
virtual CSize CalcFixedLayout (BOOL bStretch, BOOL bHorz);
virtual void AdjustLocations ();
virtual void DoPaint(CDC* pDC);
virtual int HitTest(CPoint point);
virtual BOOL OnSendCommand (const CBCGToolbarButton* pButton);
virtual DROPEFFECT OnDragOver(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
virtual int FindDropIndex (const CPoint point, CRect& rectDrag) const;
virtual void RemoveAllButtons ();
virtual BOOL EnableContextMenuItems (CBCGToolbarButton* pButton, CMenu* pPopup);
// Implementation
// Generated message map functions
protected:
//{{AFX_MSG(CBCGOutlookBar)
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
afx_msg void OnSysColorChange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Attributes
public:
COLORREF GetRegularColor () const
{
return m_clrRegText;
}
COLORREF GetSelectedColor () const
{
return m_clrSelText;
}
BOOL IsDrawShadedHighlight () const
{
return m_bDrawShadedHighlight;
}
BOOL IsBackgroundTexture () const
{
return m_bmpBack.GetCount () != 0;
}
protected:
COLORREF m_clrRegText;
COLORREF m_clrSelText;
COLORREF m_clrTransparentColor;
COLORREF m_clrBackColor;
CSize m_csImage;
CBCGToolBarImages m_bmpBack;
UINT m_uiBackImageId;
CBCGOutlookButton* m_pBtnUp;
CBCGOutlookButton* m_pBtnDown;
int m_iScrollOffset;
int m_iFirstVisibleButton;
BOOL m_bScrollDown;
CBCGToolBarImages m_Images;
BOOL m_bDrawShadedHighlight;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BCGOUTLOOKBAR_H__D92D40D4_BD73_11D1_A63F_00A0C93A70EC__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.