Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - UpdateAllViews called when deleting characters
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

UpdateAllViews called when deleting characters

 Post Reply Post Reply
Author
Message
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 226
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: UpdateAllViews called when deleting characters
    Posted: 04 October 2011 at 5:55am
I have an application with multiple views where one is a CXTPSyntaxEditView.  When testing v15.1.3 I noticed (for me) an unwanted behaviour: 

If you press backspace to delete a character ALL my views are being updated - for every character you delete. 

This is because when you delete a character range CXTPSyntaxEditCtrl::InvalidateAll() will be called. This function in turn calls

pParentWnd->GetDocument()->UpdateAllViews(NULL, xtpEditHintInvalidate);

which causes all my views to update. 

Of course I could check if lHint == xtpEditHintInvalidate, however this value is 10 which happens to be a value that I also use. 

Version 15.0.2 did not have this behaviour. 

Is this 'as designed' and will not change in future implementation or will there be another fix for it? 

Thanks, 
Fredrik
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
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.125 seconds.