Toll Free: (877) 723-1442 U.S. and Canada
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
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, 2006
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();

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Other products and/or company names may be trademarks or registered trademarks of their respective owners.