2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
#include "gdiobj.h"
|
|
|
|
#include "brush.h"
|
|
|
|
|
|
|
|
/* Internal interface */
|
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
#define PEN_AllocPen() ((HPEN)GDIOBJ_AllocObj(GDIObjType_BRUSH_TYPE))
|
|
|
|
#define PEN_AllocPenWithHandle() ((PBRUSH)GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_PEN))
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
#define PEN_FreePen(pBMObj) GDIOBJ_FreeObj((POBJ) pBMObj, GDIObjType_BRUSH_TYPE)
|
|
|
|
#define PEN_FreePenByHandle(hBMObj) GDIOBJ_FreeObjByHandle((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_PEN)
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
//#define PEN_LockPen(hBMObj) ((PBRUSH)GDIOBJ_LockObj((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_PEN))
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
#define PEN_AllocExtPen() ((PBRUSH)GDIOBJ_AllocObj(GDIObjType_BRUSH_TYPE))
|
|
|
|
#define PEN_AllocExtPenWithHandle() ((PBRUSH)GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_EXTPEN))
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
#define PEN_FreeExtPen(pBMObj) GDIOBJ_FreeObj((POBJ) pBMObj, GDIObjType_BRUSH_TYPE)
|
|
|
|
#define PEN_FreeExtPenByHandle(hBMObj) GDIOBJ_FreeObjByHandle((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_EXTPEN)
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
//#define PEN_LockExtPen(hBMObj) ((PBRUSH)GDIOBJ_LockObj((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_EXTPEN))
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
#define PEN_UnlockPen(pPenObj) GDIOBJ_UnlockObjByPtr((POBJ)pPenObj)
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2009-03-23 00:38:59 +00:00
|
|
|
#define PEN_ShareUnlockPen(ppen) GDIOBJ_ShareUnlockObjByPtr((POBJ)ppen)
|
|
|
|
|
|
|
|
|
|
|
|
PBRUSH FASTCALL PEN_LockPen(HGDIOBJ);
|
|
|
|
PBRUSH FASTCALL PEN_ShareLockPen(HGDIOBJ);
|
2008-05-13 05:13:25 +00:00
|
|
|
|
2009-03-20 22:40:14 +00:00
|
|
|
INT APIENTRY PEN_GetObject(PBRUSH pPen, INT Count, PLOGPEN Buffer);
|