Re: [WIN32Lib] programmatically select tab item?

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

tone,

I'll try to see what Microsoft Control Spy says, but in the meantime, how
would I use
TCM_DELETEITEM & TCM_SETCURSEL
in a program using Win32Lib?

Dan

----- Original Message -----
From: <tone.skoda at siol.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: [WIN32Lib] programmatically select tab item?


>
> 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>
> Sent: Friday, March 22, 2002 2:49 PM
> 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