Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Remove all Categories
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Remove all Categories

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


Joined: 04 November 2006
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote webjeff Quote  Post ReplyReply Direct Link To This Post Topic: Remove all Categories
    Posted: 20 August 2008 at 10:54am
How do I remove all categories??
 
I tried this:
for(int i = 0;i < m_wndPropertyGrid.GetCount();i++)
{
    if (m_wndPropertyGrid.GetCategories()->GetAt(i))
        m_wndPropertyGrid.GetCategories()->GetAt(i)->Remove();
}
m_wndPropertyGrid.Refresh();
 
But that didn't work, it removes some of the items, not all of them.
 
Any ideas??
Jeff.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2008 at 1:21pm
Hi,
 
GetCategories()->Clear();
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.