troubleshooting Question

CTreeCtrl on Windows 98

Avatar of mcanti
mcanti asked on
System Programming
6 Comments1 Solution345 ViewsLast Modified:
Hello,

I have this problem:

I create a tree control like this:

      CRect rect(0, 0, 100, 100);
      m_wndTree.Create( WS_CHILD|WS_TABSTOP|WS_VISIBLE, rect, this, IDC_SETTINGS_TREE );

Then I add some items like this:
            HTREEITEM hItem = m_wndTree.InsertItem(
                  TVIF_TEXT, _T("Item text"), 0, 0, 0, 0, 0, NULL, NULL);

this works fine on Windows XP, but on Windows 98 the returned hItem is always NULL. I'm using static mfc libraries, unicode version.
What could be the problem?

Another thing I noticed on Win98 is that a CListCtrl control in virtual mode does not receive LVN_GETDISPINFO messages, so it doesn't display the items.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros