![]() |
Shortcut Bar - with multiple views |
Post Reply
|
| Author | |
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Topic: Shortcut Bar - with multiple viewsPosted: 20 November 2006 at 4:49pm |
|
I'm using version ToolkitPro version 10.3.1, and building an MFC SDI app with the Shortcut Bar (it is very much like the Shortcut Bar sample at this point) This is probably an easy question, and I'm just not seeing the solution...
Basically, what I want to do is similar to the Shortcut Bar Sample, but I would like my CView-derived view to be switched when I select a new pane. (e.g. when you select "Mail" or "Contacts" or "Folders" in the sample, a new view would be swapped in place of the old view). I've thought of a more complicate way to get around it, but I imagine there might be a simple way to do this? Any help would be much appreciated (maybe this could be added to the sample too, if this is a common question???) Thanks Warren |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 November 2006 at 12:47am |
|
Hi,
what did you try ?
All you need create new view pointer, save old, call pFrameWnd->SetActiveView(pView) to activate it
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 November 2006 at 11:37am |
|
Thanks for your tip, Oleg! I got the view switching going.
What I want to do now is create "hyperlink buttons" with images. In the Shortcut bar sample, the control is a tree control, so the items don't get the "active" underlining when the mouse goes over them. Basically, I want the buttons to look like the interior of the task panel sample, when the theme is set to "custom". Here is an image of what I want to do: http://www.iconsreview.com/task_panel_shortcut_bar.PNG What is the best way to go about this? I thought of the following: 1) Get the tree control to draw in the underline style? 2) Insert a task panel in one of the panes of the shortcut bar? What do you suggest? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 November 2006 at 11:15am |
|
Hi, See TVS_TRACKSELECT TreeCtrl style in MSDN.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |