Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

Code Block
// 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