Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

GDIPlusAvailable

Returns whether GDI+ support is available.

C

void WINAPI SftTabs_GetGDIPlusAvailable(HWND hwndCtl);

C++

BOOL CSftTabs::GetGDIPlusAvailable() const;

Parameters

hwndCtl

The window handle of the tab control.

Returns

GetGDIPlusAvailable returns TRUE if GDI+ is available on the current system, otherwise FALSE is returned.

Comments

The GetGDIPlusAvailable function returns whether GDI+ support is available.

In order to use GDI+ images (see Sft_SetPictureGDIPlusImage), GDI+ support must be available. For information about distributing GDI+ with your application, please see "Distributing the Dlls".

Examples

C++

            if (lpDrawInfo->fActive)
                color = Tab.colorBgSel;
            else
                color = Tab.colorBg;
            // translate to real color (if using system colors) or use default
            // tab control color if no tab color defined
            color = TrColor(color, RGB(255,255,255)); // or lpDrawInfo->colorBg

            if (SftTabs_GetGDIPlusAvailable(m_Tab)) {
                // GDI+ is available
                if (lpDrawInfo->fHighlight)
                    SftTabs_DrawSelectionOutline(m_Tab, lpDrawInfo->hDC, &lpDrawInfo->DrawRect, 0xFFBF00L, 0xf3f3e4L, 0xFFFFFFL, 0xDAC583L);
                else
                    SftTabs_DrawSelectionOutline(m_Tab, lpDrawInfo->hDC, &lpDrawInfo->DrawRect, 0xFFBF00L, 0xF2F0C8L, 0xFFFFFFL, 0xE6D8ADL);
            } else {
                // GDI+ is not available

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.