Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1532: MFC CRect members show wrong colors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

thruska
Ketchup Master

71 Posts

Posted - Aug 24 2006 :  3:14:41 PM  Show Profile  Reply with Quote
I've noticed throughout my use of VAX (pre-VAX builds too), the wrong colors are shown for the CRect class from MFC:

CRect ClipRegionRect;
CurrDC.GetClipBox(ClipRegionRect);
CurrDC.BitBlt(ClipRegionRect.left, ClipRegionRect.top, ClipRegionRect.Width(), ClipRegionRect.Height(), &MemDC, ClipRegionRect.left, ClipRegionRect.top, SRCCOPY);

With the default colors for enhanced syntax highlighting enabled:
Both 'left' CRect member variables displays in 'blue'.
Both 'top' CRect member variables displays in 'brown'.
The Width() and Height() methods display in 'gray'.
I have tooltip syntax coloring enabled and the tooltips are also sort of messed up (the coloring is nice but I don't expect it to be correct).

CRect is the only case I've run into where this happens. It doesn't appear to affect anything or cause problems making this a cool but really weird bug.

This issue is minor. From my perspective, this is a low-priority fix.

Thomas Hruska
CubicleSoft President
http://www.cubiclesoft.com/

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 26 2006 :  7:01:13 PM  Show Profile  Reply with Quote
there is a very similar effect with the structure RECT

case=822

zen is the art of being at one with the two'ness
Go to Top of Page

thruska
Ketchup Master

71 Posts

Posted - Aug 28 2006 :  4:47:21 PM  Show Profile  Reply with Quote
I just ran into this scenario again a few minutes ago but not with RECT. I have a class called Time. I have another class that has a method called Time with zero parameters. When I write the method Time() in my code, it turns 'blue'. It should be 'brown'. This additional information might be helpful to create a reproduceable scenario that is simpler to debug.

Thomas Hruska
CubicleSoft President
http://www.cubiclesoft.com/
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 01 2006 :  4:28:34 PM  Show Profile  Reply with Quote
i am seeing the same thing, having set up this test. this appears to have a different cause, even though the final result is similar

case=660

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000