BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Professional Edition
 Graphics Manager BindDC Failing with Large Rects

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Insert Smilie
   
Message:

* HTML is OFF
* Forum Code is ON

 
   

T O P I C    R E V I E W
petersj Posted - 06/27/2022 : 02:40:31 AM
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?



1   L A T E S T    R E P L I E S    (Newest First)
Support Posted - 06/27/2022 : 04:22:11 AM
Hi,

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

Best regards,

BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000