Print Page | Close Window

CXTMemDC problem

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=7833
Printed Date: 15 July 2025 at 9:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTMemDC problem
Posted By: terrym
Subject: CXTMemDC problem
Date Posted: 18 August 2007 at 11:48am
I am using CXTMemDC to create a very large backbuffer which is 1503 by 15929 (32 bit colour) however it seems to have problems with this size, if I make a bit smaller it is fine ???
 
Is there a limit to the size of the:

m_bitmap.CreateCompatibleBitmap(m_pDC, m_rc.Width(), m_rc.Height());

command that CXTMemDC uses internally, eg. limit on memory, width or height ??



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 20 August 2007 at 2:37am
Hello,
 
I don't think you really need such big bitmap to draw. Think about how to optimize it and create smaller bitmap that only visible on screen.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 20 August 2007 at 5:47am
We were working on a better solution but just wondered if there was a limited to size of bitmaps that one can allocate, as would be interesting to know :)

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 20 August 2007 at 5:59am

Hello,

MSDN says

Windows 95/98: The created bitmap cannot exceed 16MB in size.

and nothing about 2000/XP.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 20 August 2007 at 6:15am

Yeah we found that, but on 2000/XP/VISTA it is stranger as more inconsistant :)



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: terrym
Date Posted: 20 August 2007 at 4:42pm
Ok thanks for help but we have now make a dynamic scroll area so it uses minimal device context space, once again cheers

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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