[WIN32Lib] programmatically select tab item?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Mar 22, 2002
- 501 views
Is there a way to programmatically select a tab item? Nothing I tried worked. I did find a way to destroy a tab item, by using a sledge hammer: I destroyed the tabitem, all other tabitems, and then the tabcontrol itself, and then re-created the tab control, all the tabitems other than the deleted one, and everything inside each tab item. This works, except it crashed when I delete the FIRST tab item, with a message about an instruction referencing mem FFFFFFFF, except if I manually select any other tab item first, then go back to the first tab item & delete it, in which case it works fine. So I'm thinking to make a delete first tab item start out by selecting another tab item, then re-selecting the first before it deletes it. Dan Moyer