CToolbar.SetHotItemmethod
Sets the hot item in a toolbar.
Syntax
FUNCTION SetHotItem (BYVAL hToolbar AS HWND, BYVAL iHot AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
iHot | Index of the item that will be made hot. If this value is -1, none of the items will be hot. |
Return value
Returns the index of the previous hot item, or -1 if there was no hot item.
Description
Sets the hot item in a toolbar.
Remarks
The behavior of this message is not defined for toolbars that do not have the TBSTYLE_FLAT style.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:1153
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class