XTP_NM_REPORTCOLUMNRESIZE notification |
Post Reply |
Author | |
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Posted: 19 February 2009 at 5:41am |
Hi codejocke developers!
If I/user moves a column (AutoColumnSizing = false), why does report send a message XTP_NM_REPORTCOLUMNRESIZE??? (message comes from CXTPReportHeader::AdjustColumnsWidth()) Because my program also react to this message, wrong code will be executed. In my opinion this code is wrong/to much:
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I think you are right - better use as
if (!m_bAutoColumnSizing)
{
XTP_NM_REPORTCOLUMNRESIZE nmData; ZeroMemory(&nmData, sizeof(nmData)); m_pControl->SendNotifyMessage(XTP_NM_REPORT_COLUMNWIDTHCHANGED, (NMHDR*)&nmData); }
You can also modify your app OnNotify code and check m_bAutoColumnSizing flag before doing smth
|
|
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
|
Hmmm
The newest code was edited, but it doing the same as before.... ???? Why should I notified with a message COLUMNWIDTHCHANGED whenn I move a column?? (if !m_bAutoColumnSizing, columns still have the same size after moving) Make it sense to remove code?? |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I did not promice to change it right now - had something more important
I commented red code as I agree with your opinion - no needed notification
You can get updated code here https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar and build fresh version
I like to have some responds from forum members who need this fix.
Same request for selection - move case.
There are also some complains about resizing model but nobody propose some spec for resizing we can discuss and implement.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Can you please explain why you send a XTP_NM_REPORT_COLUMNWIDTHCHANGED with NULL-values?!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |