Maps a tab index to its corresponding handle.
Handle = Send_Message(Ctrl, "OLE.IndexToHandle", Index) |
Parameter | Description |
---|---|
Index | Index to an exiting tab |
Handle to the tab
The IndexToHandle method maps the index of a given tab to its corresponding handle. Most properties use indexes, but the AddTab and RemoveTab methods work with handles. The reverse method, HandleToIndex, can be used to get back a tab's index.
// Get the handle to the second tab so we can remove it TabHandle = Send_Message(@Window:".OLE_TAB", "OLE.IndexToHandle", 2) Send_Message(@Window:".OLE_TAB", "OLE.RemoveTab", TabHandle) |
AddTab, RemoveTab, HandleToIndex