SftTabs/DLL 6.0

SetDrawTabCallback

Softel vdm, Inc.

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 lpfnDrawProc

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

SFTTABS_DWORD_PTR UserData

An 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


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com