BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Professional Edition
 Graphics Manager BindDC Failing with Large Rects
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

petersj

1 Posts

Posted - 06/27/2022 :  02:40:31 AM  Show Profile  Reply with Quote
Hi, I've been trying to use the CBCGPGraphicsManagerD2D::BindDC method with 'large' RECTs to draw a long header bar when zoomed into one of our Gantt charts.

However when trying to bind a Rect with width larger than 16384 (Or 2^14 exactly?) it throws this error:

"E_INVALIDARG One or more arguments are invalid."

I can't see any documentation that states a limit on this, especially since a RECT uses signed 32bit ints?

Is this a bug or am I doing something incorrectly?



Support

4175 Posts

Posted - 06/27/2022 :  04:22:11 AM  Show Profile  Visit Support's Homepage  Reply with Quote
Hi,

This is a Direct2D issue: CBCGPGraphicsManagerD2D::BindDC simply wraps ID2D1DCRenderTarget::BindDC.

Best regards,

BCGSoft Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000