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 dialogs used as pages of a tab control call SftTabs_TransparentControls to pass messages on to SftTabs/DLL so they can be processed.
C
BOOL WINAPI SftTabs_TransparentControls(HWND hwnd, SFTTABS_DRAWBACKGROUNDPROC lpfnDrawBackground, UINT* lpmessage, WPARAM* lpwParam, LPARAM* lplParam, LRESULT* lplResult, DWORD flag, SFTTABS_DWORD_PTR UserData);
hwnd
The window handle of the tab page (the message's destination window).
lpfnDrawBackground
The address of an application supplied drawing callback for special background handling. An application can define a background color for a tab page using the SFTTABS_TAB, colorClientArea member (see SetTabInfo) or define a background bitmap using the SFTTABS_CONTROL, hInsideBitmap member (see SetControlInfo). lpfnDrawBackground overrides other background definitions and allows an application to render the background.
lpmessage, wParam, lParam
Message parameters.
lplResult
The message result value. If SftTabs_TransparentControls returns TRUE, this result value should be returned from the dialog procedure.
flag
Defines processing options. Use one of the following values:
0 | lpfnDrawBackground is ignored if Windows themes are active. |
SFTTABS_DRAWBG_OVERRIDETHEME | lpfnDrawBackground is always honored, even if Windows themes are active. |
UserData
An application defined value that is passed to the background drawing callback lpfnDrawBackground as the UserData parameter.
The return value is TRUE if the message was processed by SftTabs/DLL, otherwise FALSE.
The TransparentControls function is called by the dialogs used as pages of a tab control to pass messages on to SftTabs/DLL so they can be processed.
If this function is not called, certain features of SftTabs/DLL may not appear to be working correctly, such as background handling, control transparency and transition effects.
When using C, the SftTabs_TransparentControls function handles background painting. It is not used for C++ and MFC. CSftTabsPage::m_lpfnDrawBackground can be used to define special background handling.
Backgrounds are only supported on Windows XP (using Common Controls version 6) and above. While it is possible to enable backgrounds for all environments, most Windows controls will not be rendered correctly. Background colors based on SFTTABS_TAB, colorClientArea are supported in all environments.
Calling SftTabs_TransparentControls is required even if special background handling is not needed, to insure upward compatibility with future releases of this product.
// initialize page SftTabs_SetPageActive(hwndDlg, (HWND) lParam, NULL); return !SftTabs_IsRegisteredDialog(GetParent(hwndDlg)); } if (SftTabs_HandleDialogMessage(hwndDlg, msg, wParam, lParam)) return TRUE; if (SftTabs_TransparentControls(hwndDlg, NULL, &msg, &wParam, &lParam, &lResult, 0, 0)) return (BOOL) lResult; return FALSE; } HWND CALLBACK Page1_Callback(BOOL fCreate, HWND hwndOwner, HWND hwndPage, HWND hwndTab) { if (fCreate) { // creating a new page
See Also C/C++ API | C++ Classes | Notifications