Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Line marks not working with Visual Studio 2010
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Line marks not working with Visual Studio 2010

 Post Reply Post Reply
Author
Message
VolkerE View Drop Down
Newbie
Newbie
Avatar

Joined: 09 February 2006
Location: Germany
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote VolkerE Quote  Post ReplyReply Direct Link To This Post Topic: Line marks not working with Visual Studio 2010
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2011 at 11:39am
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.