Maps a tab handle to its corresponding index.

Syntax

Index = Send_Message(Ctrl, "OLE.HandleToIndex", Handle)

Parameters

ParameterDescription
HandleHandle to an exiting tab

Returns

Index of the tab

Remarks

The HandleToIndex method maps the handle of a given tab to its corresponding index. Most properties use indexes, but the AddTab and RemoveTab methods work with handles. The reverse method, IndexToHandle, can be used to get back a tab's handle.

Example

// Add a new tab and get its index
TabHandle = Send_Message(@Window:".OLE_TAB", "OLE.AddTab", "My New Tab", "BMPS\TabImage3.png", 1)
TabIndex = Send_Message(@Window:".OLE_TAB", "OLE.HandleToIndex", TabHandle)

See Also

AddTabRemoveTabIndexToHandle

  • No labels