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
The SFTTREE_OWNERDRAWPARM structure is used to define an application-specific owner-draw callback routine, which is called whenever an object needs to be rendered.
typedef struct tagSftTreeOwnerDrawParm { LPFNSFTTREE_OWNERDRAWPROC lpfnOwnerDrawProc; SFTTREE_DWORD_PTR OwnerDrawUserData; } SFTTREE_OWNERDRAWPARM, * LPSFTTREE_OWNERDRAWPARM; typedef const SFTTREE_OWNERDRAWPARM * LPCSFTTREE_OWNERDRAWPARM;
A pointer to a owner-draw callback routine, which is called every time an object needs to be rendered.
An application-specific value. This value is passed to the function lpfnOwnerDrawProc LPFNSFTTREE_OWNERDRAWPROC as OwnerDrawUserData parameter. Could be used to pass a global storage area to the callback routine.
The SFTTREE_OWNERDRAWPARM structure is used to define an application-specific owner-draw callback routine, which is called whenever an object needs to be rendered.
SftTree_SetShowRowHeader(g_hwndTree, SFTTREE_ROWSTYLE_BUTTONCOUNT1);/* Row style */ SftTree_SetRowColHeaderText(g_hwndTree, TEXT("?"));/* Row/column header text */ SftTree_SetRowColHeaderStyle(g_hwndTree, ES_LEFT | SFTTREE_HEADER_UP);/* Row/column header style */ SftTree_SetRowColHeaderPictureStyle(g_hwndTree, SFTTREE_BMP_RIGHT);/* Row/column picture alignment */ SftTree_SetCharSearchMode(g_hwndTree, SFTTREE_CHARSEARCH_ALLCHARS, -1);/* Consider all characters typed */ /* Use an ownerdraw callback routine */ { SFTTREE_OWNERDRAWPARM Parm; /* Parameter list */ Parm.lpfnOwnerDrawProc = (LPFNSFTTREE_OWNERDRAWPROC) Tree_OwnerDrawCallback;/* User supplied drawing routine */ Parm.OwnerDrawUserData = (SFTTREE_DWORD_PTR)0;/* User supplied data */ SftTree_SetOwnerDrawCallback(g_hwndTree, &Parm); } /* Change the default colors */ { SFTTREE_COLORS Colors; SftTree_GetCtlColors(g_hwndTree, &Colors);/* Get current color settings */
} m_Tree.SetShowRowHeader(SFTTREE_ROWSTYLE_BUTTONCOUNT1);/* Row style */ m_Tree.SetRowColHeaderText(_T("?")); /* Row/column header text */ m_Tree.SetRowColHeaderStyle(ES_LEFT | SFTTREE_HEADER_UP);/* Row/column header style */ m_Tree.SetCharSearchMode(SFTTREE_CHARSEARCH_ALLCHARS, -1);/* Consider all characters typed */ /* Use an ownerdraw callback routine */ { SFTTREE_OWNERDRAWPARM Parm; /* Parameter list */ Parm.lpfnOwnerDrawProc = (LPFNSFTTREE_OWNERDRAWPROC) CSampleView::OwnerDrawCallback;/* User supplied drawing routine */ Parm.OwnerDrawUserData = (SFTTREE_DWORD_PTR)this;/* User supplied data */ m_Tree.SetOwnerDrawCallback(&Parm); } /* Change the default colors */ { SFTTREE_COLORS Colors;
See Also C/C++ API | Categories | Notifications