86 lines
2.4 KiB
C++
86 lines
2.4 KiB
C++
//////////////////////////////////////////////////////////////////////////
|
|
// 文件列表
|
|
// 创建人: 周风生、黄荣平
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_HYCOOLBAR1_H__BB2176CE_DB3F_4462_AC56_CB81ADD87B46__INCLUDED_)
|
|
#define AFX_HYCOOLBAR1_H__BB2176CE_DB3F_4462_AC56_CB81ADD87B46__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "shsSizingControlBar.h"
|
|
#include "CoolTreeCtrl.h"
|
|
#include "shsFlatButton.h"
|
|
#include "shsFlatCaption.h"
|
|
#ifndef baseCCoolBar
|
|
#define baseCCoolBar CHYSizingControlBar
|
|
#endif
|
|
class CHYCoolBar1 : public CHYSizingControlBar
|
|
{
|
|
DECLARE_DYNAMIC(CHYCoolBar1);
|
|
|
|
// Construction
|
|
public:
|
|
CHYCoolBar1();
|
|
|
|
// Attributes
|
|
public:
|
|
virtual BOOL HasGripper() const;
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overridables
|
|
virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
|
|
virtual BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
|
|
CSize sizeDefault, BOOL bHasGripper,
|
|
UINT nID, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP);
|
|
virtual BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
|
|
UINT nID, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP);
|
|
|
|
// Overrides
|
|
public:
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CHYCoolBar1)
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
void SetNotifyWindow(HWND hNotifyWnd);
|
|
HWND GetNotifyWindow() { return m_hNotifyWnd; };
|
|
virtual ~CHYCoolBar1();
|
|
CCoolTreeCtrl m_tree;
|
|
protected:
|
|
// implementation helpers
|
|
virtual void NcPaintGripper(CDC* pDC, CRect rcClient);
|
|
virtual void NcCalcClient(LPRECT pRc, UINT nDockBarID);
|
|
|
|
protected:
|
|
int m_cyGripper;
|
|
CHYFlatButton m_biHide;
|
|
|
|
BOOL m_bActive; // a child has focus
|
|
CString m_sFontFace;
|
|
HWND m_hNotifyWnd; // 消息通知窗口,默认为父窗口
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CHYCoolBar1)
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg LRESULT OnNcHitTest(CPoint point);
|
|
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
|
|
afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam);
|
|
afx_msg BOOL OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult );
|
|
// 屏蔽双击弹出Bar,不能浮动
|
|
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//CHYFlatButton m_biHide; // "关闭"按纽
|
|
#endif
|