1 Star 0 Fork 9

LYDYYDS / MFCSkin

forked from xmsharp / MFCSkin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CEditEx.h 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
xmsharp 提交于 2020-04-24 14:25 . 新增文件
#pragma once
#include "CustomDrawEdit.h"
// CCEditEx
class CCEditEx : public CStatic
{
DECLARE_DYNAMIC(CCEditEx)
public:
CCEditEx();
virtual ~CCEditEx();
CCustomDrawEdit& GetMyEdit();
void setTipText(CString tip);
void setPwdMode(BOOL bPwdMode);
void SetWindowText(CString strText);
void GetWindowText(CString& strText);
void SetBkColor(COLORREF color);
void SetBorderColor(COLORREF color);
void SetDisable(BOOL isDisable);
protected:
DECLARE_MESSAGE_MAP()
virtual void PreSubclassWindow();
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
void DrawBorder(CDC* dc, CRect &rc);
void OnNcPaint();
void OnPaint();
protected:
CCustomDrawEdit m_edit;
int m_radian;
int m_padding;
COLORREF m_normal_in_color;
COLORREF m_normal_out_color;
COLORREF m_bkColor;
COLORREF m_text_color;
CBrush m_bkBrush;
CString m_strTip;
BOOL m_bPwdInput;
CString m_strText;
BOOL m_bDisable;
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/lydyyds/MFCSkin.git
git@gitee.com:lydyyds/MFCSkin.git
lydyyds
MFCSkin
MFCSkin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891