1. Win32Lib TabItem question

Okay, I've been racking my brain on this one and can't come up with an answer,
even looking at MSDN.

I have a routine that tells me the index of the tab item that the user right
clicks on (I found it in the forum).  What I want is the Win32Lib control number
that the tab item is assigned.

Is this just really simple and I'm overlooking something?

TIA!

Jonas Temple
http://www.yhti.net/~jktemple

new topic     » topic index » view message » categorize

2. Re: Win32Lib TabItem question

Jonas Temple wrote:
> 
> Okay, I've been racking my brain on this one and can't come up with an answer,
> even looking at MSDN.
> 
> I have a routine that tells me the index of the tab item that the user right
> clicks on (I found it in the forum).  What I want is the Win32Lib control
> number
> that the tab item is assigned.
> 
> Is this just really simple and I'm overlooking something?
> 
> TIA!
> 
> Jonas Temple
> <a href="http://www.yhti.net/~jktemple">http://www.yhti.net/~jktemple</a>

Call getConrolInfo(TC_id,CONTROLINFO_tabitems) to get a list of tab items 
owned by the control. This list receives the ids of newly created 
items by a &=, so they are ordered by increasing order of creation times.

Since, as of today, tab items are always created as the last item of the 
tab control, this is also the increasing index order.

Then, the index you got points, in the returned sequence, to the id of 
the tab item.

CChris

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib TabItem question

CChris wrote:
> Call getConrolInfo(TC_id,CONTROLINFO_tabitems) to get a list of tab items 
> owned by the control. This list receives the ids of newly created 
> items by a &=, so they are ordered by increasing order of creation times.
> 
> Since, as of today, tab items are always created as the last item of the 
> tab control, this is also the increasing index order.
> 
> Then, the index you got points, in the returned sequence, to the id of 
> the tab item.
> 
> CChris

Thanks!  That worked perfectly.


Jonas Temple
http://www.innovativesys.net

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu