Files
envi-code/SourceCode/Code2026/shsTK/shsCoolBar3.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

71 lines
2.0 KiB
C++

//////////////////////////////////////////////////////////////////////////
// 文件说明
// 创建人: 周风生、黄荣平
//////////////////////////////////////////////////////////////////////////
#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;
HWND m_hNotifyWnd; // 消息通知窗口,默认为父窗口
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);
// 屏蔽双击弹出Bar,不能浮动
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
DECLARE_MESSAGE_MAP()
};
#endif