1. Win32Lib TabItem question
- Posted by Jonas Temple <jtemple at yhti.net> Feb 07, 2007
- 519 views
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
2. Re: Win32Lib TabItem question
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> Feb 07, 2007
- 527 views
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
3. Re: Win32Lib TabItem question
- Posted by Jonas Temple <jtemple at yhti.net> Feb 07, 2007
- 533 views
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