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

📄 gdiplus_cap.cpp

📁 Windows Mobile平台上使用GDI+。GDI+功能很强大
💻 CPP
📖 第 1 页 / 共 2 页
字号:
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCustomLineCapBaseInset);
        }
        if ( g_GdipGetCustomLineCapBaseInset != NULL )
        {
            status = (*g_GdipGetCustomLineCapBaseInset)(customCap, inset);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCustomLineCapWidthScalePtr)(GpCustomLineCap* customCap, REAL widthScale));
DEFINE_MEMBER(GdipSetCustomLineCapWidthScale);

GpStatus WINGDIPAPI
GdipSetCustomLineCapWidthScale(GpCustomLineCap* customCap, REAL widthScale)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetCustomLineCapWidthScale == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetCustomLineCapWidthScale);
        }
        if ( g_GdipSetCustomLineCapWidthScale != NULL )
        {
            status = (*g_GdipSetCustomLineCapWidthScale)(customCap, widthScale);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCustomLineCapWidthScalePtr)(GpCustomLineCap* customCap, REAL* widthScale));
DEFINE_MEMBER(GdipGetCustomLineCapWidthScale);

GpStatus WINGDIPAPI
GdipGetCustomLineCapWidthScale(GpCustomLineCap* customCap, REAL* widthScale)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetCustomLineCapWidthScale == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCustomLineCapWidthScale);
        }
        if ( g_GdipGetCustomLineCapWidthScale != NULL )
        {
            status = (*g_GdipGetCustomLineCapWidthScale)(customCap, widthScale);
        }
    }
    return status;
}

//----------------------------------------------------------------------------
// AdjustableArrowCap APIs
//----------------------------------------------------------------------------

DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCreateAdjustableArrowCapPtr)(REAL height, REAL width, BOOL isFilled,
                             GpAdjustableArrowCap **cap));
DEFINE_MEMBER(GdipCreateAdjustableArrowCap);

GpStatus WINGDIPAPI
GdipCreateAdjustableArrowCap(REAL height, REAL width, BOOL isFilled,
                             GpAdjustableArrowCap **cap)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipCreateAdjustableArrowCap == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipCreateAdjustableArrowCap);
        }
        if ( g_GdipCreateAdjustableArrowCap != NULL )
        {
            status = (*g_GdipCreateAdjustableArrowCap)(height, width, isFilled, cap);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetAdjustableArrowCapHeightPtr)(GpAdjustableArrowCap* cap, REAL height));
DEFINE_MEMBER(GdipSetAdjustableArrowCapHeight);

GpStatus WINGDIPAPI
GdipSetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, REAL height)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetAdjustableArrowCapHeight == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetAdjustableArrowCapHeight);
        }
        if ( g_GdipSetAdjustableArrowCapHeight != NULL )
        {
            status = (*g_GdipSetAdjustableArrowCapHeight)(cap, height);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetAdjustableArrowCapHeightPtr)(GpAdjustableArrowCap* cap, REAL* height));
DEFINE_MEMBER(GdipGetAdjustableArrowCapHeight);

GpStatus WINGDIPAPI
GdipGetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, REAL* height)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetAdjustableArrowCapHeight == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetAdjustableArrowCapHeight);
        }
        if ( g_GdipGetAdjustableArrowCapHeight != NULL )
        {
            status = (*g_GdipGetAdjustableArrowCapHeight)(cap, height);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetAdjustableArrowCapWidthPtr)(GpAdjustableArrowCap* cap, REAL width));
DEFINE_MEMBER(GdipSetAdjustableArrowCapWidth);

GpStatus WINGDIPAPI
GdipSetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, REAL width)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetAdjustableArrowCapWidth == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetAdjustableArrowCapWidth);
        }
        if ( g_GdipSetAdjustableArrowCapWidth != NULL )
        {
            status = (*g_GdipSetAdjustableArrowCapWidth)(cap, width);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetAdjustableArrowCapWidthPtr)(GpAdjustableArrowCap* cap, REAL* width));
DEFINE_MEMBER(GdipGetAdjustableArrowCapWidth);

GpStatus WINGDIPAPI
GdipGetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, REAL* width)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetAdjustableArrowCapWidth == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetAdjustableArrowCapWidth);
        }
        if ( g_GdipGetAdjustableArrowCapWidth != NULL )
        {
            status = (*g_GdipGetAdjustableArrowCapWidth)(cap, width);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetAdjustableArrowCapMiddleInsetPtr)(GpAdjustableArrowCap* cap, 
                                     REAL middleInset));
DEFINE_MEMBER(GdipSetAdjustableArrowCapMiddleInset);

GpStatus WINGDIPAPI
GdipSetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, 
                                     REAL middleInset)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetAdjustableArrowCapMiddleInset == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetAdjustableArrowCapMiddleInset);
        }
        if ( g_GdipSetAdjustableArrowCapMiddleInset != NULL )
        {
            status = (*g_GdipSetAdjustableArrowCapMiddleInset)(cap, middleInset);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetAdjustableArrowCapMiddleInsetPtr)(GpAdjustableArrowCap* cap, 
                                     REAL* middleInset));
DEFINE_MEMBER(GdipGetAdjustableArrowCapMiddleInset);

GpStatus WINGDIPAPI
GdipGetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, 
                                     REAL* middleInset)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetAdjustableArrowCapMiddleInset == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetAdjustableArrowCapMiddleInset);
        }
        if ( g_GdipGetAdjustableArrowCapMiddleInset != NULL )
        {
            status = (*g_GdipGetAdjustableArrowCapMiddleInset)(cap, middleInset);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetAdjustableArrowCapFillStatePtr)(GpAdjustableArrowCap* cap, BOOL fillState));
DEFINE_MEMBER(GdipSetAdjustableArrowCapFillState);

GpStatus WINGDIPAPI
GdipSetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL fillState)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipSetAdjustableArrowCapFillState == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetAdjustableArrowCapFillState);
        }
        if ( g_GdipSetAdjustableArrowCapFillState != NULL )
        {
            status = (*g_GdipSetAdjustableArrowCapFillState)(cap, fillState);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetAdjustableArrowCapFillStatePtr)(GpAdjustableArrowCap* cap, BOOL* fillState));
DEFINE_MEMBER(GdipGetAdjustableArrowCapFillState);

GpStatus WINGDIPAPI
GdipGetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL* fillState)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != 0 )
    {
        if ( g_GdipGetAdjustableArrowCapFillState == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetAdjustableArrowCapFillState);
        }
        if ( g_GdipGetAdjustableArrowCapFillState != NULL )
        {
            status = (*g_GdipGetAdjustableArrowCapFillState)(cap, fillState);
        }
    }
    return status;
}


//----------------------------------------------------------------------------
// Platform Shunt
//----------------------------------------------------------------------------

VOID WINAPI
Gdiplus_CapInit()
{
}

⌨️ 快捷键说明

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