Returns whether GDI+ support is available.
C
BOOL WINAPI SftTabs_GetGDIPlusAvailable(HWND hwndCtl);
C++
BOOL CSftTabs::GetGDIPlusAvailable() const;
hwndCtl
The window handle of the tab control.
GetGDIPlusAvailable returns TRUE if GDI+ is available on the current system, otherwise FALSE is returned.
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".
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, fDark ? RGB(45, 45, 45) : RGB(255, 255, 255));
if (SftTabs_GetGDIPlusAvailable(m_Tab)) {
// GDI+ is available
if (fDark) {
if (lpDrawInfo->fHighlight)
SftTabs_DrawSelectionOutline(m_Tab, lpDrawInfo->hDC, &lpDrawInfo->DrawRect, RGB(80, 160, 255), RGB(50, 55, 65), RGB(60, 65, 75), RGB(45, 55, 70));
else
SftTabs_DrawSelectionOutline(m_Tab, lpDrawInfo->hDC, &lpDrawInfo->DrawRect, RGB(80, 160, 255), RGB(45, 50, 60), RGB(55, 60, 70), RGB(40, 50, 65));
} else {See Also C/C++ API | C++ Classes | Notifications