SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns whether GDI+ support is available.
C
void 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, 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