Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - Custom Caption in tasks
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom Caption in tasks

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


Joined: 27 September 2009
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jowndow Quote  Post ReplyReply Direct Link To This Post Topic: Custom Caption in tasks
    Posted: 27 September 2009 at 7:06pm
I am trying to add groups in the TaskPanel with a run-time generated caption.

Because I won't know the group title before run-time, I can't use:

CXTPTaskPanelGroup* pGroup1 = m_wndOutlookBar.AddGroup(4000);

where 4000 is the ID of the string the String Table. Is there a way to add a group in this way?

CXTPTaskPanelGroup* pGroup1 = m_wndOutlookBar.AddGroup("Today, is Sunday September 27th");

Thanks! :)

Xtreme ToolkitPro 2008 (12.0.2)
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2009 at 9:40am
Just add a group with whatever ID you want the group to have. Then call the SetCaption method of the group object. If the ID happened to match a string in the string table, no problem since you will then be resetting the caption. If you want no caption, call SetCaption("");
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.141 seconds.