⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdiplus_cap.cpp

📁 Windows Mobile平台上使用GDI+。GDI+功能很强大
💻 CPP
📖 第 1 页 / 共 2 页
字号:
#include "stdafx.h"
#include "GdiplusShunt.h"

//----------------------------------------------------------------------------
// CustomLineCap APIs
//----------------------------------------------------------------------------


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCreateCustomLineCapPtr)(GpPath* fillPath, GpPath* strokePath,
                  GpLineCap baseCap, REAL baseInset, GpCustomLineCap **customCap));
DEFINE_MEMBER(GdipCreateCustomLineCap);

GpStatus WINGDIPAPI
GdipCreateCustomLineCap(GpPath* fillPath, GpPath* strokePath,
   GpLineCap baseCap, REAL baseInset, GpCustomLineCap **customCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipCreateCustomLineCap == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipCreateCustomLineCap);
        }
        if ( g_GdipCreateCustomLineCap != NULL )
        {
            status = (*g_GdipCreateCustomLineCap)(fillPath, strokePath, baseCap, baseInset, customCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDeleteCustomLineCapPtr)(GpCustomLineCap* customCap));
DEFINE_MEMBER(GdipDeleteCustomLineCap);

GpStatus WINGDIPAPI
GdipDeleteCustomLineCap(GpCustomLineCap* customCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipDeleteCustomLineCap == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipDeleteCustomLineCap);
        }
        if ( g_GdipDeleteCustomLineCap != NULL )
        {
            status = (*g_GdipDeleteCustomLineCap)(customCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCloneCustomLineCapPtr)(GpCustomLineCap* customCap,
                       GpCustomLineCap** clonedCap));
DEFINE_MEMBER(GdipCloneCustomLineCap);

GpStatus WINGDIPAPI
GdipCloneCustomLineCap(GpCustomLineCap* customCap,
                       GpCustomLineCap** clonedCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipCloneCustomLineCap == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipCloneCustomLineCap);
        }
        if ( g_GdipCloneCustomLineCap != NULL )
        {
            status = (*g_GdipCloneCustomLineCap)(customCap, clonedCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCustomLineCapTypePtr)(GpCustomLineCap* customCap,
                       CustomLineCapType* capType));
DEFINE_MEMBER(GdipGetCustomLineCapType);

GpStatus WINGDIPAPI
GdipGetCustomLineCapType(GpCustomLineCap* customCap,
                       CustomLineCapType* capType)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetCustomLineCapType == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCustomLineCapType);
        }
        if ( g_GdipGetCustomLineCapType != NULL )
        {
            status = (*g_GdipGetCustomLineCapType)(customCap, capType);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCustomLineCapStrokeCapsPtr)(GpCustomLineCap* customCap,
                               GpLineCap startCap, GpLineCap endCap));
DEFINE_MEMBER(GdipSetCustomLineCapStrokeCaps);

GpStatus WINGDIPAPI
GdipSetCustomLineCapStrokeCaps(GpCustomLineCap* customCap,
                               GpLineCap startCap, GpLineCap endCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetCustomLineCapStrokeCaps == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetCustomLineCapStrokeCaps);
        }
        if ( g_GdipSetCustomLineCapStrokeCaps != NULL )
        {
            status = (*g_GdipSetCustomLineCapStrokeCaps)(customCap, startCap, endCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCustomLineCapStrokeCapsPtr)(GpCustomLineCap* customCap,
                               GpLineCap* startCap, GpLineCap* endCap));
DEFINE_MEMBER(GdipGetCustomLineCapStrokeCaps);

GpStatus WINGDIPAPI
GdipGetCustomLineCapStrokeCaps(GpCustomLineCap* customCap,
                               GpLineCap* startCap, GpLineCap* endCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetCustomLineCapStrokeCaps == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCustomLineCapStrokeCaps);
        }
        if ( g_GdipGetCustomLineCapStrokeCaps != NULL )
        {
            status = (*g_GdipGetCustomLineCapStrokeCaps)(customCap, startCap, endCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCustomLineCapStrokeJoinPtr)(GpCustomLineCap* customCap, 
                               GpLineJoin lineJoin));
DEFINE_MEMBER(GdipSetCustomLineCapStrokeJoin);

GpStatus WINGDIPAPI
GdipSetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, 
                               GpLineJoin lineJoin)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetCustomLineCapStrokeJoin == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetCustomLineCapStrokeJoin);
        }
        if ( g_GdipSetCustomLineCapStrokeJoin != NULL )
        {
            status = (*g_GdipSetCustomLineCapStrokeJoin)(customCap, lineJoin);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCustomLineCapStrokeJoinPtr)(GpCustomLineCap* customCap, GpLineJoin* lineJoin));
DEFINE_MEMBER(GdipGetCustomLineCapStrokeJoin);

GpStatus WINGDIPAPI
GdipGetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, 
                               GpLineJoin* lineJoin)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetCustomLineCapStrokeJoin == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCustomLineCapStrokeJoin);
        }
        if ( g_GdipGetCustomLineCapStrokeJoin != NULL )
        {
            status = (*g_GdipGetCustomLineCapStrokeJoin)(customCap, lineJoin);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCustomLineCapBaseCapPtr)(GpCustomLineCap* customCap, GpLineCap baseCap));
DEFINE_MEMBER(GdipSetCustomLineCapBaseCap);

GpStatus WINGDIPAPI
GdipSetCustomLineCapBaseCap(GpCustomLineCap* customCap, GpLineCap baseCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetCustomLineCapBaseCap == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetCustomLineCapBaseCap);
        }
        if ( g_GdipSetCustomLineCapBaseCap != NULL )
        {
            status = (*g_GdipSetCustomLineCapBaseCap)(customCap, baseCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCustomLineCapBaseCapPtr)(GpCustomLineCap* customCap, GpLineCap* baseCap));
DEFINE_MEMBER(GdipGetCustomLineCapBaseCap);

GpStatus WINGDIPAPI
GdipGetCustomLineCapBaseCap(GpCustomLineCap* customCap, GpLineCap* baseCap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetCustomLineCapBaseCap == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCustomLineCapBaseCap);
        }
        if ( g_GdipGetCustomLineCapBaseCap != NULL )
        {
            status = (*g_GdipGetCustomLineCapBaseCap)(customCap, baseCap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCustomLineCapBaseInsetPtr)(GpCustomLineCap* customCap, REAL inset));
DEFINE_MEMBER(GdipSetCustomLineCapBaseInset);

GpStatus WINGDIPAPI
GdipSetCustomLineCapBaseInset(GpCustomLineCap* customCap, REAL inset)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetCustomLineCapBaseInset == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetCustomLineCapBaseInset);
        }
        if ( g_GdipSetCustomLineCapBaseInset != NULL )
        {
            status = (*g_GdipSetCustomLineCapBaseInset)(customCap, inset);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCustomLineCapBaseInsetPtr)(GpCustomLineCap* customCap, REAL* inset));
DEFINE_MEMBER(GdipGetCustomLineCapBaseInset);

GpStatus WINGDIPAPI
GdipGetCustomLineCapBaseInset(GpCustomLineCap* customCap, REAL* inset)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetCustomLineCapBaseInset == NULL )

⌨️ 快捷键说明

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