Re: [WIN32Lib] programmatically select tab item?

new topic     » goto parent     » topic index » view thread      » older message » newer message

According to documentation in Microsoft Control Spy (I recommend that you
download it from the web, it has C source code):
- to delete item use TCM_DELETEITEM
- to select item use TCM_SETCURSEL

That should work because I tried it in Tab.exe from Control Spy and it
worked, both of them.

----- Original Message -----
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUforum" <EUforum at topica.com>
Subject: [WIN32Lib] programmatically select tab item?


>
> 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
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu