Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - wrong CalculateRowHeight
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

wrong CalculateRowHeight

 Post Reply Post Reply
Author
Message Reverse Sort Order
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Topic: wrong CalculateRowHeight
    Posted: 05 November 2008 at 11:54am
I use Xtreme ToolkitPro v11.2.0

Bug in XTPReportPaintManager.cpp
int CXTPReportPaintManager::CalculateRowHeight(CDC* pDC, const CString& strText, int nMaxWidth, BOOL bWordBreak)

To fix this bag need remove from text (const CString& strText) symbol '\r' because GetTextExtentX count it (new line '\r\n')
"word\r" > "word"
If "word\r\n" in end of string, RowHeight have extra new line
:(
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.094 seconds.