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
Fredrik View Drop Down
Senior Member
Senior Member

Joined: 22 June 2005
Status: Offline
Points: 156
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? 

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

This page was generated in 0.094 seconds.