www.pudn.com > CraftFTP_gb.rar > CaptionBar.h
#if !defined(AFX_LCCTITLEBAR_H__133B56A1_8247_494D_91D8_6DE1C8E4349B__INCLUDED_)
#define AFX_LCCTITLEBAR_H__133B56A1_8247_494D_91D8_6DE1C8E4349B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CaptionBar.h : header file
//
#include "CaptionBar.h"
#include "PathComboBox.h"
#define COLOR_GRADIENTACTIVECAPTION 27
#define COLOR_GRADIENTINACTIVECAPTION 28
#define SPI_GETGRADIENTCAPTIONS 0x1008
/////////////////////////////////////////////////////////////////////////////
// CCaptionBar window
class CCaptionBar : public CStatic
{
friend class CLocalListCtrl;
friend class CLocalView;
friend class CRemoteistCtrl;
friend class CRemoteView;
// Construction
public:
CCaptionBar();
// Attributes
protected:
CPathComboBox m_wndCombBox;
CLCCButton m_wndButtonnUp;
BOOL m_bActiveCaption;
CString m_szCaptionText;
CToolTipCtrl m_wndTooltipCtrl;
CFont m_font;
BOOL m_bRemote;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCaptionBar)
public:
//virtual void ComboBoxCurSelChange() = 0;
virtual BOOL Create(CView* pParentWnd, BOOL bRemote);
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
void EnableAllChild(BOOL bEnable);
void SetCaptionText(CString szText);
void SetActiveCaption(BOOL bActive = TRUE);
CLCCButton * GetUpButton();
CPathComboBox * GetPathComboBox();
virtual ~CCaptionBar();
// Generated message map functions
protected:
afx_msg void OnFolderUp() ;
//{{AFX_MSG(CCaptionBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSysColorChange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LCCTITLEBAR_H__133B56A1_8247_494D_91D8_6DE1C8E4349B__INCLUDED_)