Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Shortcut Bar - with multiple views
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shortcut Bar - with multiple views

 Post Reply Post Reply
Author
Message
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Topic: Shortcut Bar - with multiple views
    Posted: 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


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post 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?


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2006 at 11:15am

Hi,

See TVS_TRACKSELECT  TreeCtrl style in MSDN.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.