Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Bug in CXTTreeCtrl/View?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug in CXTTreeCtrl/View?

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


Joined: 29 September 2004
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote steveshepard Quote  Post ReplyReply Direct Link To This Post Topic: Bug in CXTTreeCtrl/View?
    Posted: 30 September 2004 at 11:49am

Hi All,

There seems to be a bug in CXTTreeCtrl/View. 

After SetInsertMark() is called, the Insert mark is only partially rendered; the part that intersects the rect returned by GetItemRect() is overwritten in DoPaint().

Can some recommend a work around?

-Steve

Back to Top
steveshepard View Drop Down
Newbie
Newbie


Joined: 29 September 2004
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote steveshepard Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2004 at 12:44pm

> Can some recommend a work around?

After looking at the code, one fix would be to subclass CXTTreeCtrl and

  • Override SetInsertMark() and Get/SetInsertMarkColor() to record the relevant item, item color, and indicator location information.
  • Register for ON_WM_PAINT and
    • Call CXTTreeCtrl::OnPaint.
    • Draw the indicator.

Anyone know if the insert indicator look has changed since Win98?  Or can I safely draw one flavor on all?

-Steve

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.027 seconds.