共用方式為


CToolBarCtrl::SetHotItem

Sets the hot item in a toolbar.

int SetHotItem( 
   int nHot  
);

Parameters

  • nHot
    The zero-based index number of the item that will be made hot. If this value is -1, none of the items will be hot.

Return Value

The index of the previous hot item, or -1 if there was no hot item.

Remarks

This member function implements the behavior of the Win32 message TB_SETHOTITEM, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::GetHotItem