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.