2026-10-04 00:04:20 +08:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// 文件说明
|
|
|
|
|
// 创建人: 周风生、黄荣平
|
2026-09-28 15:28:50 +08:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#if !defined(AFX_HYCOOLBAR3_H__D6521C1B_4664_4D4B_89C9_E4424E810D54__INCLUDED_)
|
|
|
|
|
#define AFX_HYCOOLBAR3_H__D6521C1B_4664_4D4B_89C9_E4424E810D54__INCLUDED_
|
|
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
|
#pragma once
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "shsSizingControlBar.h"
|
|
|
|
|
#include "shsFlatButton.h"
|
|
|
|
|
#include "shsFlatCaption.h"
|
|
|
|
|
#ifndef baseCCoolBar
|
|
|
|
|
#define baseCCoolBar CHYSizingControlBar
|
|
|
|
|
#endif
|
|
|
|
|
class CHYCoolBar3: public CHYSizingControlBar
|
|
|
|
|
{
|
|
|
|
|
DECLARE_DYNAMIC(CHYCoolBar3);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CHYCoolBar3();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
virtual BOOL HasGripper() const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CString m_sExplain;
|
|
|
|
|
CEdit m_staticCtrl;
|
|
|
|
|
void SetNotifyWindow(HWND hNotifyWnd);
|
|
|
|
|
HWND GetNotifyWindow() { return m_hNotifyWnd; };
|
|
|
|
|
virtual ~CHYCoolBar3();
|
|
|
|
|
protected:
|
|
|
|
|
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;
|
2026-10-04 00:04:20 +08:00
|
|
|
HWND m_hNotifyWnd; // 消息通知窗口,默认为父窗口
|
2026-09-28 15:28:50 +08:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
|
|
|
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
|
|
|
|
|
afx_msg LRESULT OnNcHitTest(CPoint point);
|
|
|
|
|
afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam);
|
|
|
|
|
afx_msg BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT *pResult);
|
|
|
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
2026-10-04 00:04:20 +08:00
|
|
|
// 屏蔽双击弹出Bar,不能浮动
|
2026-09-28 15:28:50 +08:00
|
|
|
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
|
|
|
|
|
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|