aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-02-06 09:45:49 +0000
committernyamatongwe <devnull@localhost>2004-02-06 09:45:49 +0000
commit8e486a729f30b7c3fd3c660c02d13df8f3f4873c (patch)
tree1f44549ff19a9dd12a7db1a798cbba7d291f7a21
parented53c96c3ccf3908a4dcf391ddae377530cfa657 (diff)
downloadscintilla-mirror-8e486a729f30b7c3fd3c660c02d13df8f3f4873c.tar.gz
Changed window object destruction to occor on WM_NCDESTROY
rather than WM_DESTROY as WM_NCDESTROY is the last message a window sees.
-rw-r--r--win32/ScintillaWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index fc02cd457..1bb297652 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2029,7 +2029,7 @@ sptr_t PASCAL ScintillaWin::CTWndProc(
return ::DefWindowProc(hWnd, iMessage, wParam, lParam);
}
} else {
- if (iMessage == WM_DESTROY) {
+ if (iMessage == WM_NCDESTROY) {
::SetWindowLong(hWnd, 0, 0);
return ::DefWindowProc(hWnd, iMessage, wParam, lParam);
} else if (iMessage == WM_PAINT) {
@@ -2097,7 +2097,7 @@ sptr_t PASCAL ScintillaWin::SWndProc(
return ::DefWindowProc(hWnd, iMessage, wParam, lParam);
}
} else {
- if (iMessage == WM_DESTROY) {
+ if (iMessage == WM_NCDESTROY) {
sci->Finalise();
delete sci;
::SetWindowLong(hWnd, 0, 0);