Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Question with task panel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Question with task panel

 Post Reply Post Reply
Author
Message
unit158 View Drop Down
Newbie
Newbie


Joined: 15 June 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote unit158 Quote  Post ReplyReply Direct Link To This Post Topic: Question with task panel
    Posted: 23 June 2005 at 3:16pm
I am currently developing a little practice application as I familiarize myself with this great package... but I am having a little trouble with something...

I have used the TaskPanel sample application as a guide to creating a similar application, but I would like to have a little more flexibility with the main portion of the program. The TaskPanel seems to use a CListCtrl, I would like to be able to use a tab control, or even have it display a bitmap... I am having trouble implementing something like this.

If there are any sample apps that do this, or if anyone has any suggestions about how to go about this, I would greatly appreciate the help.

-Mike
Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2005 at 3:56pm

Hey Mike,

I'm using the active-x vesion but I think the same thing holds true of the MFC one.  You can just add an item to the group using the "xtpTaskItemTypeControl" style.  Then assign the Handle property the handle of the control you want displayed in the task panel (or you can use the Control property).

I display a child dialog that has several controls on it as a single item.

Back to Top
unit158 View Drop Down
Newbie
Newbie


Joined: 15 June 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote unit158 Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2005 at 10:26pm
Im not so sure xtpTaskItemTypeControl applies to MFC


If it does, I havent been able to find any documetation or examples of it.
Back to Top
bevpet View Drop Down
Newbie
Newbie
Avatar

Joined: 01 April 2005
Location: Canada
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote bevpet Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2005 at 9:11pm

take a look at the Tabmanager sample...

x:...\Codejock Software\MFC\Xtreme Toolkit Pro\Samples\Common\TabManager

Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2005 at 12:02pm

I'm not sure about MFC but when using WTL I go:

 ITaskPanelGroupItemPtr controlItem2 = group3->Items->Add( 5, "Test Custom4 Control", XtremeSuiteControls::xtpTaskItemTypeControl );


 controlItem2->Handle = (int)myControlToAddToTaskPane->hwnd();


 

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.047 seconds.