Thursday, May 17, 2012
Call Toll Free: (877) 723-1442 U.S. and Canada
Quick Menu
ActiveX / COM
Visual C++ / MFC
Case Studies
Contact Sales

Call center available M-F 9:00 - 6:00 US Eastern Time.

U.S. and Canada
(877) 723-1442

International
(517) 625-5729

Email

Making a Group Special

Author: Mike Palmatier
Posted: May 3, 2008
Environment: Visual C++ 6.0

You can designate a task panel group as "special."  Groups marked as special will be displayed differently than normal groups drawing the users attention to that particular group.  This is an excellent way to show the user the "default" or important items.

"Special" group

Normal group

To set a group as special all you need to do is use the SetSpecialGroup method.

CXTPTaskPanelGroup* pGroupSystem = m_wndTaskPanel.AddGroup(ID_TASKGROUP_SYSTEM);

pGroupSystem->SetIconIndex(IDI_SYSTEM_TASKS);

 

pGroupSystem->AddLinkItem(ID_TASKITEM_HIDECONTENTS, 0);

pGroupSystem->AddLinkItem(ID_TASKITEM_ADDORREMOVE, 1);

pGroupSystem->AddLinkItem(ID_TASKITEM_SEARCH, 2);

 

pGroupSystem->SetSpecialGroup();