Versions Compared

Key

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

...

The AddTab method adds a new tab to the end of the tab control. You pass the caption, image, and initial enabled state of the new tab. This method returns a handle to the tab. A handle is a number that identifies this tab. You can use the HandleToIndex method to convert the handle to an index.

...

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

RemoveTab