Guides & Tutorials

Guides and Tutorials

Making a Group Special

by Mike Palmatier Visual C++ Created on 05/03/2008  |  Updated on 08/28/2024 0/5 ( 0 votes )

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
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();

User Comments

No comments yet, sign in to comment.