Print Page | Close Window

Line marks not working with Visual Studio 2010

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=17744
Printed Date: 23 November 2024 at 7:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Line marks not working with Visual Studio 2010
Posted By: VolkerE
Subject: Line marks not working with Visual Studio 2010
Date Posted: 04 January 2011 at 5:33am
CXTPSyntaxEditPaintManager::DrawLineMark() does not work any more when compiled with VS 2010!

Tested on Windows 7 with:
- XTreme Toolkit Pro 13.4.2
- MDITextEditor sample

Compiled with Visual Studio 2008: breakpoint and bookmarks are displayed correctly
Compiled with Visual Studio 2010: breakpoint and bookmarks are NOT displayed at all




Replies:
Posted By: Oleg
Date Posted: 04 January 2011 at 11:14am
Hi,

Thanks, very strange. Seems CImageList::DrawIndirect somehow fail with VC2010. 

Please temporary replace
IMAGELISTDRAWINDIRECT_S(GetBookmarks(), pDC, iImage, ptStart, szRect);
to
GetBookmarks()->Draw(pDC, iImage, ptStart, ILD_NORMAL);
and build toolkit.


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


Posted By: Oleg
Date Posted: 04 January 2011 at 11:17am
Definitelly bug of Visual Studio.

in vc 2008

if (dwMajor < 6)
{
pimldp->cbSize = IMAGELISTDRAWPARAMS_V3_SIZE;
}
else
{
pimldp->cbSize = sizeof(IMAGELISTDRAWPARAMS);
}

in vc 2010

if (dwMajor < 6)
{
pimldp->cbSize = IMAGELISTDRAWPARAMS_V3_SIZE;
}

and cbSize  never set in its general CImageList::DrawIndirect.


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


Posted By: Oleg
Date Posted: 04 January 2011 at 11:39am
https://connect.microsoft.com/VisualStudio/feedback/details/543108/bug-in-cimagelist-drawindirect - https://connect.microsoft.com/VisualStudio/feedback/details/543108/bug-in-cimagelist-drawindirect

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



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