Files
envi-code/SourceCode/Code2026/shsTK/shsFlatButton.h
T

33 lines
873 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//////////////////////////////////////////////////////////////////////////
// 所有DockBar中的关闭按扭
// 创建人: 周风生
// CHYFlatButton类的头文件
// 参考CSCBButton类的建立方法和CCJFlatButton类
// 可以在创建时给定按扭的大小
// 用于在DockBar中关闭按扭
2026-09-28 15:28:50 +08:00
//////////////////////////////////////////////////////////////////////////
#if !defined(AFX_HYFLATBUTTON_H__7BEF932E_B3A9_4FC2_A0BA_68778B69A45F__INCLUDED_)
#define AFX_HYFLATBUTTON_H__7BEF932E_B3A9_4FC2_A0BA_68778B69A45F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CHYFlatButton
{
public:
CHYFlatButton();
void Move(CPoint ptTo) {ptOrg = ptTo; };
CRect GetRect() { return CRect(ptOrg, CSize(13, 13)); };
void Paint(CDC* pDC);
BOOL bPushed;
BOOL bRaised;
protected:
CPoint ptOrg;
};
#endif