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
This sample illustrates working with colors.
This is not an executable sample, so a complete project is not provided. These statements are intended to show the syntax used.
ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown(); vDir1->ActiveColumnBackColor = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ActiveColumnBackColor = RGB(0xff, 0, 0); vDir1->BackColor = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT; vDir1->BackColor = RGB(0xff, 0, 0); vDir1->ForeColor = RGB(0xff, 0xff, 0xff); vDir1->ForeColorArchiveReady = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ForeColorArchiveReady = RGB(0xff, 0, 0); vDir1->ForeColorCompressed = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ForeColorCompressed = RGB(0xff, 0, 0); vDir1->ForeColorEncrypted = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ForeColorEncrypted = RGB(0xff, 0, 0); vDir1->ForeColorHidden = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ForeColorHidden = RGB(0xff, 0, 0); vDir1->ForeColorReadOnly = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ForeColorReadOnly = RGB(0xff, 0, 0); vDir1->SelectBackColor = 0x80000000L | COLOR_HIGHLIGHT; vDir1->SelectForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT; vDir1->SelectBackColor = RGB(0xff, 0, 0); vDir1->SelectForeColor = RGB(0xff, 0xff, 0xff); vDir1->SelectBackColorNoFocus = 0x80000000L | COLOR_HIGHLIGHT; vDir1->SelectForeColorNoFocus = 0x80000000L | COLOR_HIGHLIGHTTEXT; vDir1->SelectBackColorNoFocus = RGB(0xff, 0, 0); vDir1->SelectForeColorNoFocus = RGB(0xff, 0xff, 0xff); vDir1->ColumnEntry[0]->BackColor = 0x80000000L | COLOR_HIGHLIGHT; vDir1->ColumnEntry[0]->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT; vDir1->ColumnEntry[0]->SelectBackColor = RGB(0xff, 0xff, 0xff); vDir1->ColumnEntry[0]->SelectForeColor = RGB(0, 0, 0); vDir1->CurrentFolder->BackColor = 0x80000000L | COLOR_BTNFACE; vDir1->CurrentFolder->ForeColor = RGB(0,0,0); vDir1->Headers->BackColor = 0x80000000L | COLOR_HIGHLIGHT; vDir1->Headers->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT; vDir1->Headers->GrayedColor = RGB(0xc0, 0xc0, 0xc0); vDir1->Headers->DarkEdgeColor = RGB(0xc0, 0xc0, 0xc0); vDir1->Headers->LightEdgeColor = RGB(0xff, 0, 0);