Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

SetDrawTabCallback

Defines a drawing callback routine used to paint tab labels.

C

BOOL WINAPI SftTabs_SetDrawTabCallback(HWND hwndCtl, LPSFTTABS_DRAWPROCPARM lpDrawProcParm);

C++

BOOL CSftTabs::SetDrawTabCallback(LPSFTTABS_DRAWPROCPARM lpDrawProcParm = NULL);

Parameters

hwndCtl

The window handle of the tab control.

lpDrawProcParm

A pointer to a SFTTABS_DRAWPROCPARM structure containing the parameters for this function to register a drawing callback function and user supplied data. This parameter may be NULL to stop using the callback function. The SFTTABS_DRAWPROCPARM structure contains the following members:

SFTTABS_DRAWTABPROC lpfnDrawProcA pointer to a drawing callback routine which calculates the tab label size and paints tab labels.
SFTTABS_DWORD_PTR UserDataAn application specific value. This value is passed to the drawing callback (SFTTABS_DRAWTABPROC) as the UserData parameter.

Returns

The return value is TRUE if the function was successful, otherwise FALSE is returned.

Comments

Defines a drawing callback routine used to paint tab labels.

The callback function uses the information passed in the SFTTABS_DRAWINFO structure to calculate or paint tab labels.

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


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