Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

SFTTABS_DRAWPROCPARM Structure

Used as a parameter for SetDrawTabCallback to define an application-specific drawing callback routine, which paints the tab labels.

typedef struct tagTabsDrawProcParm {
    SFTTABS_DRAWTABPROC lpfnDrawProc; /* User supplied drawing callback routine */
    SFTTABS_DWORD_PTR UserData; /* User supplied data */
} SFTTABS_DRAWPROCPARM, * LPSFTTABS_DRAWPROCPARM;

Members

lpfnDrawProc

A pointer to a drawing callback routine of type SFTTABS_DRAWTABPROC, which calculates the tab label size and paints tab labels.

UserData

An application specific value. This value is passed to the drawing callback (SFTTABS_DRAWTABPROC) as the UserData parameter.

Comments

The SFTTABS_DRAWPROCPARM structure is used as a parameter for SetDrawTabCallback to define an application-specific drawing callback routine, which paints the tab labels.

Example

C++

// Register a drawing callback
{
    SFTTABS_DRAWPROCPARM Parm = {
        CSampleDlg::DrawOneTabCallback,
        (SFTTABS_DWORD_PTR)(LPVOID)this // Pass this to callback as UserData
    };
    m_Tab.SetDrawTabCallback(&Parm);
}

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.