📄 mylabel.h
字号:
// MyLabel.h: interface for the CMyLabel class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYLABEL_H__92D0CE57_9479_4066_9BEA_EA2712934893__INCLUDED_)
#define AFX_MYLABEL_H__92D0CE57_9479_4066_9BEA_EA2712934893__INCLUDED_
#include "MyEdit.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyLabel
{
public:
bool bIsFile;
int iShape;
int iImageIndex;
UINT PID,MID;
char *cName;
bool bPressed;
CRect LabelRect;
CImageList *pImageList;
COLORREF crHilightBorder,crDkShadowBorder,crBackGroundColor, crBackGroundColor1;
COLORREF crTextColor;
CRect rcLabel,rcImage;
public:
bool bSelect;
void setFont(CFont *f);
CFont *font;
int iAnimateStep;
int iDirect;
void setShape3Animate(bool animate);
int iAnimate;
bool bAnimate;
bool bVisible;
void setVisible(bool visible);
DWORD dwEditStyle;
bool bEditShow;
void SetTextCol(COLORREF col);
CMyEdit *pEdit;
int StretchWidth;
int bmpWidth;
CBitmap *bmpIcon;
bool OpenBitmap(char *filename);
void OutRect();
COLORREF crBodercol,crBackcol,crPressed,crPass;
int iAct;
void SetEnable(bool enable);
bool bEnable;
bool bRename;
void setName(char *name);
void setPos(int left,int top,int right,int bottom);
bool bPass;
CWnd *pParentWnd;
bool bImage;
void OnMouseMove(CPoint point);
void OnRButtonDown(CPoint point);
void OnLButtonUp(CPoint point);
void OnLButtonDown(CPoint point);
void SetImageList(UINT nID);
void DrawLabel(CDC *pDC);
CMyLabel(char *name,int shape,int imageindex,bool bimage,bool brename,UINT nPID,UINT nMID,CWnd *pParent,bool fromfile=false);
CMyLabel();
virtual ~CMyLabel();
};
#endif // !defined(AFX_MYLABEL_H__92D0CE57_9479_4066_9BEA_EA2712934893__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -