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
The SFTPRINTPREVIEW_COLORS structure is used with the GetCtlColors and SetCtlColors functions to define color attributes.
typedef struct tagSftPrintPreviewColors { COLORREF colorFg; // foreground color - not used COLORREF colorBg; // background color COLORREF colorPaper; // paper color COLORREF colorShadow; // page shadow COLORREF colorPageGap; // page gap COLORREF colorToolbar; // toolbar background color COLORREF colorSelected; // selected page frame color COLORREF colorMargin; // margin color COLORREF colorGutter; // gutter margin color COLORREF colorHeaderText, colorFooterText;// header, footer text color COLORREF colorHeaderLine, colorFooterLine;// header, footer line color } SFTPRINTPREVIEW_COLORS, * LPSFTPRINTPREVIEW_COLORS; typedef const SFTPRINTPREVIEW_COLORS * LPCSFTPRINTPREVIEW_COLORS;
Reserved for future use.
Defines the background color of the area around displayed pages.
Defines the paper (background color) of displayed pages.
Defines the shadow color used for displayed pages.
Defines the color used to fill the gap between displayed pages (when pages are paired).
Defines the background color used for the built-in tool bar. If Windows themes are in effect, the color defined using the colorToolbar member is ignored.
Defines the color used to outline the current page, when multiple pages are displayed.
Defines the color used to shade the left, right, top, bottom margins when SFTPRINTPREVIEW_CONTROL, fShowAreas is set to TRUE.
Defines the color used to shade the gutter margin when SFTPRINTPREVIEW_CONTROL, fShowAreas is set to TRUE.
Defines the color used for the header text.
Defines the color used for the footer text.
Defines the color used for the line below the header. The line is only shown if SFTPRINTPREVIEW_CONTROL, fLineBelowHeader is TRUE.
Defines the color used for the line above the footer. The line is only shown if SFTPRINTPREVIEW_CONTROL, fLineAboveFooter is TRUE.
The SFTPRINTPREVIEW_COLORS structure is used with the GetCtlColors and SetCtlColors functions to define color attributes.
An RGB value or a GetSysColor index value can be specified for all color values. If a color index is used, the high-order bit must be set (e.g., COLOR_WINDOW | 0x80000000L).
C
SFTPRINTPREVIEW_COLORS Colors; SftPrintPreview_GetCtlColors(m_hwndPreview, &Colors); Colors.colorPaper = RGB(255,255,255); Colors.colorShadow = COLOR_BTNSHADOW | 0x80000000L; SftPrintPreview_SetCtlColors(m_hwndPreview, &Colors);
C++
SFTPRINTPREVIEW_COLORS Colors; m_Preview.GetCtlColors(&Colors); Colors.colorPaper = RGB(255,255,255); Colors.colorShadow = COLOR_BTNSHADOW | 0x80000000L; m_Preview.SetCtlColors(&Colors);
See Also C/C++ API | C++ Classes | Notifications