You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
711 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
// m_MyImgBtn
class CMyBottom : public CMFCButton
{
DECLARE_DYNAMIC(CMyBottom)
public:
CMyBottom();
virtual ~CMyBottom();
void SetButtonStyle(CString Tooltip);
void SetFontStyle();
void Refreash();
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
void SetDownColor(COLORREF color);
void SetUpColor(COLORREF color);
void SetTextColor(COLORREF color);
protected:
DECLARE_MESSAGE_MAP()
private:
CFont m_font;
//三种颜色分别为文字Button Down的背景颜色Button Up的背景颜色
COLORREF m_TextColor;
COLORREF m_DownColor;
COLORREF m_UpColor;
};