Re: Win32Lib TabItem question

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

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu