SECTabControlBase::SetTabIcon

The SetTabIcon member allows you to set an icon to be shown on the tab specified by nIndex. Some tab control implementations may not support icons in their look and feel (i.e., the SECTabWnd class doesn’t). In these cases, calls to this member are ignored. Three variants of this member exist, so you can call this member if you have a handle, resource ID or resource name of the icon.

Defined in: tabctrlb.cpp

Syntax

SetTabIcon(int nIndex, HICON hIcon)

SetTabIcon(int nIndex, UINT nIDIcon,int cx,int cy)

SetTabIcon(int nIndex, LPCTSTR lpszIconName,int cx,int cy)

Return Value

void

Parameters

nIndex

Index of tab to specify a tab for.

hIcon

The handle to the icon.

nIDIcon

The resource ID of the icon.

lpszIconName

The resource name of the icon.

cx

Not used.

cy

Not used.

See Also

SECTabControlBase