cpen.h

来自「基于Windml2.0的窗口系统原代码 , 以及和MFC CDC兼容的CDC」· C头文件 代码 · 共 60 行

H
60
字号
#ifndef cpen_vxworks_h
#define cpen_vxworks_h
//----------------------------------------------------------------------------------------------------------------------
#include "cdc_platform.h"

#define BLACK_PEN 0
#define WHITE_PEN 1

//nPenStyle

#define PS_SOLID  UGL_LINE_STYLE_SOLID
#define PS_DASH   UGL_LINE_STYLE_DASHED
	
class CPen
{	
public:
    //##ModelId=40501B860216
	CPen();
	
    //##ModelId=40501B860357
	CPen( int nPenStyle, int nWidth, COLORREF crColor );
	
    //##ModelId=40501B860361
	virtual ~CPen();

public:
    //##ModelId=40501B860363
	const CPen & operator=(const CPen &right);
	
    //##ModelId=40501B86036A
    bool CreatePen( int nPenStyle, int nWidth, COLORREF crColor );
    
    //##ModelId=40501B860375
    bool CreatePenIndirect( LPLOGPEN lpLogPen );
    
    //##ModelId=40501B86037E
    bool CreateStockObject(int index);
    
    //##ModelId=3FC70480003E
	bool DeleteObject();

public:

	//画笔样式
    //##ModelId=40501B860342
	int m_nPenStyle;
	
	//画笔粗细
    //##ModelId=40501B860343
	int m_nWidth;
	
	//画笔颜色
    //##ModelId=40501B86034C
	UGL_COLOR m_crColor;

};

#endif //cpen_vxworks_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?