I've seen this happen a number of times. I'm not willing to invest too much time into fixing the current system becuase I'll be revamping the entire "last visit" logic to make it a little more useful.
To your class derived from TreeView add to the message handler //{{AFX_MSG(CMyTreeView) afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG Implement the function OnRButtonDown as following void CMyTreeView::OnLButtonDown(UINT nFlags, CPoint point) { UINT uFlags; HTREEITEM hItem = GetTreeCtrl().HitTest(point, &uFlags); if ((hItem != NULL) && (uFlags & TVHT_ONITEM)) { CString strText = GetTreeCtrl().GetItemText(hItem); AfxMessageBox(strText); } }
I don't know what flat view looked like, but I would like to see something like the preview mode only with 10 lines or so per message. You should also consider downloading all the messages at once and only show them when clicked on. Anyway, you need to do something to reduce the load on your server, I get the "HTTP Server busy" error much too often. Keep up the good work!
I've just installed Uwe's new profile scripts that will help with the password situation - in fact by creating a user profile on CodeProject you'll have access to a whole bunch of neat customisations for the message boards and other sections of the site. With regards to the Prev/Next links, you are right. As soon as I'm back from PDC 2000 I'll look into fixing this. I'm offline at the moment so if I forget to do this just send me an email reminding me. cheers Chris
What an ugly crypto-commercial :-( You charge A LOT for your "Visual C++ Developer,", naturally you drew 'attention' to this site and other free sources... I consider your post as a spam, sorry :(
Stripping tags is easy - it's the formatted text output that is the trick. For instance, <h1>Heading</h1>This is a paragraph Should come out: Heading This is a paragraph but by stripping tags we'd get Heading This is a paragraph I'll check out the DOM as per Eriks suggestion