How to find the next item in a group |
Post Reply |
Author | |
dennisV
Senior Member Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Posted: 26 October 2011 at 5:22pm |
Hello,
I'm trying to find the next item in the current group inside a task panel, but can't seem to find a way to do so. This is the code fragment that I currently have, but obviously it's wrong:
Can someone tell me the right way to do this? Thanks! |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
CXTPTaskPanelGroupItem has a GetIndex member. I have code that tabs among groups (and controls in dialogs inserted into groups) in my task panel. When I need to move to from one group to another group, I get the current group, call GetIndex() and then increment the index by one and I can use that index to get the "next" group in the task panel.
I "wrap" around to the top group when I see the index is at the task panel's GetGroupCount() - 1 by setting the index to zero. And if shift-tabbing, if the current group index is zero, I set it to GetGroupCount() -1. So try using GetIndex() and see if it works. |
|
dennisV
Senior Member Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
|
Thanks for the tip - I got it to work as I need :)
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |