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
Calculates a tab control size which will provide a client area of the given size.
C
BOOL SftTabs_AdjustClientRect(HWND hwndCtl, LPRECT lpRect);
C++
BOOL CSftTabs::AdjustClientRect(LPRECT lpRect) const;
hwndCtl
The window handle of the tab control.
lpRect
A pointer to a RECT structure containing the desired client area size. The values in the RECT structure will be updated to contain the required tab control size to accommodate the desired client area size.
The return value is TRUE if the function was successful, otherwise FALSE is returned.
The AdjustClientRect function calculates a tab control size which will provide a client area of the given size.
This function can only be used with tab control styles that provide a client area (fClientArea of the SFTTABS_CONTROL structure is TRUE).
This example calculates the tab control size necessary to fit a client area size of 100 pixels in width and 50 pixels in height:
C
RECT rect; SetRect(&rect, 0, 0, 100, 50); SftTabs_AdjustClientRect(hwndTab, &rect);
C++
CRect rect(0,0,100,50); m_Tab.AdjustClientRect(&rect);
See Also C/C++ API | C++ Classes | Notifications