Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

SFTTREESPLIT_CLASS Preprocessor Symbol

The SFTTREESPLIT_CLASS preprocessor symbol defines the window class name of a tree control with splitter bar.

#define SFTTREESPLIT_CLASS "SftTreeSplit75"

Comments

The SFTTREESPLIT_CLASS preprocessor symbol defines the window class name of a tree control with splitter bar.

SFTTREE_CLASS is the window class name of a tree control without splitter bar.

The actual class name (SftTreeSplit75) usually changes between SftTree/DLL releases.

When defining a tree control using the window class SFTTREE_CLASS, the functions SftTreeSplit_xxx or the C++ class CSftTreeSplit must be used.

This preprocessor symbol is normally used when creating a control window dynamically using CreateWindow(Ex). When designing a dialog resource (see "Creating a Dialog Resource"), the window class name must be entered as-is and the preprocessor symbol cannot be used.

Examples

C

{
    switch (msg) {

    case WM_CREATE: {
        RECT rect;
        GetClientRect(hwnd, &rect);
        g_hwndTree = CreateWindowEx(
            WS_EX_CLIENTEDGE,
            TEXT(SFTTREESPLIT_CLASS),        /* Window class */
            TEXT(""),                        /* Caption (none) */
            SFTTREESTYLE_NOTIFY |            /* Notify parent window */
            SFTTREESTYLE_LEFTBUTTONONLY |    /* Only respond to left mouse button */
            SFTTREESTYLE_SCROLL |            /* Honor WS_H/VSCROLL */
            SFTTREESTYLE_DISABLENOSCROLL |   /* Disable scrollbars instead of hiding */
            WS_HSCROLL | WS_VSCROLL |        /* Vertical and horizontal scrollbars */
            WS_VISIBLE | WS_CHILD,           /* Visible, child window */

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