BUG: #1596616 Problem exiting with ESC key if /e param is given
This is my attempt to clarify code for saving modified documents in all different situations. I tried many different approaches and this seems to be the cleanest and easiest.
Most important changes:
- use SaveModified() method in CMergeDoc to handle saving of modified documents. Remove saving code from CMainFrame and most other CMergeDoc methods.
- set buffers non-modified in actual saving code to minimize window for wrong values for ismodified() checks.
- Use PostMessage() in PreTranslateMessage() to better handle messages (SendMessage() waits message to be handled which can cause side-effects)
Log in to post a comment.