Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

EnterResizeMode

Allows the user to resize the panes of a split tree control using the keyboard.

C

void WINAPI SftTreeSplit_EnterResizeMode(HWND hwndCtl);

C++

void CSftTreeSplit::EnterResizeMode();

Parameters

hwndCtl

The window handle of the tree control.

Comments

The EnterResizeMode function allows the user to resize the panes of a split tree control using the keyboard.

EnterResizeMode is only available for a split tree control.

The splitter bar of a split tree control can always be resized by dragging the splitter bar using the mouse. If an application wants to provide a keyboard interface, a menu option could be implemented which invokes EnterResizeMode.

Once EnterResizeMode is called, the panes of a split tree control can be resized using the left and right arrow keys. Once the user presses the Escape key or moves the mouse cursor away from the splitter bar, the resizing operation ends. While the user resizes the panes, SFTTREEN_COLUMNSIZE events are received by the application.

Examples

C

            }
            break;

        case 1000:                      // Menu command, Exit
            DestroyWindow(hwnd);
            break;

        case 1001:                      // Menu command, Resize Splitter
            SftTreeSplit_EnterResizeMode(g_hwndTree);
            break;
        }
        break;
     }
    }
    return DefWindowProc(hwnd, msg, wParam, lParam);
}

C++

    CSampleView* pTHIS = (CSampleView*)(LPVOID)UserData;
    // Call the object's member function.
    pTHIS->VReleaseItem(totCols, index, lpItem);
}


void CSampleView::OnResize()
{
    m_Tree.EnterResizeMode();
}

See Also C/C++ API | Categories | Notifications