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
Moves a tab within a tab control.
C
BOOL SftTabs_MoveTab(HWND hwndCtl, int fromIndex, int insertIndex);
C++
BOOL CSftTabs::MoveTab(int fromIndex, int insertIndex);
hwndCtl
The window handle of the tab control.
fromIndex
The zero-based index of the tab to be moved to the new position defined by insertIndex.
insertIndex
The zero-based index of the insertion position where the tab defined by fromIndex will be moved to.
The return value is TRUE if moving the tab was successful, FALSE otherwise.
Moves a tab within a tab control.
All the attributes of the tab being moved are moved along with the tab.
The WM_SETREDRAW Windows message can be used to suppress the tab control from being redrawn when many tabs are moved.
Tabs can be deleted using DeleteTab. New tabs can be inserted at a specific location using InsertTab.
break; case SFTTABSN_SWITCHED:// we switched to a new page SftTabs_ActivatePage(hwnd, hwndCtl, NULL, FALSE); break; case SFTTABSN_DRAGDROP: { // {popup "tab reordering" pop_tabreordering} SFTTABS_DRAGINFO dragInfo; SftTabs_GetDragInfo(hwndCtl, &dragInfo); if (dragInfo.targetAllowed) { SftTabs_MoveTab(hwndCtl, dragInfo.reorderTab, dragInfo.targetTab); } break; } } break; case IDOK:
pChildFrame->DestroyWindow(); } void CMainFrame::OnTabsReordered() { SFTTABS_DRAGINFO dragInfo; m_MDITab.GetDragInfo(&dragInfo); if (dragInfo.targetAllowed) m_MDITab.MoveTab(dragInfo.reorderTab, dragInfo.targetTab); } BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if( !CMDIFrameWnd::PreCreateWindow(cs) ) return FALSE; return TRUE;
See Also C/C++ API | C++ Classes | Notifications