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
Notifies a tab control that the page attached to the currently active tab has been activated.
C
void WINAPI SftTabs_SetPageActive(HWND hwndSubDlg, HWND hwndTab, LPVOID lpTabData);
hwndSubDlg
The window handle of the page attached to the currently active tab. This value is saved in the hwndSubDlg member of the SFTTABS_CONTROL structure.
hwndTab
The window handle of the tab control.
lpTabData
An application defined value. This value is saved in the lpTabData member of the SFTTABS_CONTROL structure. For the C++ tabbed dialog and window implementation, this is the page object, otherwise this parameter should be NULL.
The SetPageActive function notifies a tab control that the page attached to the currently active tab has been activated.
The page is automatically resized to fit inside the tab control's client area (or a supplied frame window, see SFTTABS_CONTROL), certain incompatible window styles are changed and the page is made visible. The call to SftTabs_SetPageActive should always be performed in the page's WM_INITDIALOG message handler or the SFTTABS_TABCALLBACK function. For C++, the call is automatic when using the supplied classes.
This C example shows a page (subdialog) about to become active:
switch (msg) { case WM_INITDIALOG: { HWND hwndTab = (HWND) lParam;// get the associated tab control // initialize page SftTabs_SetPageActive(hwndDlg, (HWND) lParam, NULL); return FALSE; } }
See Also C/C++ API | C++ Classes | Notifications