|
|
|
|
|
SFTTABS_DRAWPROCPARM |
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
A pointer to a drawing callback routine of type SFTTABS_DRAWTABPROC, which calculates the tab label size and paints tab labels.
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