Print Page | Close Window

Bug in CXTTreeCtrl/View?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1221
Printed Date: 06 November 2025 at 4:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in CXTTreeCtrl/View?
Posted By: steveshepard
Subject: Bug in CXTTreeCtrl/View?
Date 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




Replies:
Posted By: steveshepard
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net