Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

SFTTREE_CLASS Preprocessor Symbol

The SFTTREE_CLASS preprocessor symbol defines the window class name of a tree control without splitter bar.

#define SFTTREE_CLASS "SftTreeControl75"

Comments

The SFTTREE_CLASS preprocessor symbol defines the window class name of a tree control without splitter bar.

SFTTREESPLIT_CLASS is the window class name of a tree control with a splitter bar.

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

When defining a tree control using the window class SFTTREE_CLASS, the functions SftTree_xxx or the C++ class CSftTree 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: {
        SFT_PICTURE Pic;                    /* A picture */

        g_hwndTree = CreateWindowEx(
            WS_EX_CLIENTEDGE,                
            TEXT(SFTTREE_CLASS),             /* Window class */
            TEXT(""),                        /* Caption (none) */
            SFTTREESTYLE_NOTIFY |            /* Notify parent window */
            SFTTREESTYLE_VARIABLE |          /* Variable height items */
            SFTTREESTYLE_LEFTBUTTONONLY |    /* Only respond to left mouse button */
            SFTTREESTYLE_SCROLL |            /* Honor WS_H/VSCROLL */
            WS_HSCROLL | WS_VSCROLL |        /* Vertical and horizontal scrollbars */
            WS_VISIBLE | WS_CHILD,           /* Visible, child window */

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