Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

Colors Sample (C++)

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);

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