diff options
author | nyamatongwe <unknown> | 2004-02-06 09:45:49 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-02-06 09:45:49 +0000 |
commit | e8023c47686c865f79d2a40da21940875b045958 (patch) | |
tree | 1f44549ff19a9dd12a7db1a798cbba7d291f7a21 /win32/ScintillaWin.cxx | |
parent | 8d5d60f5f623965ce2009e291b5692306557b82e (diff) | |
download | scintilla-mirror-e8023c47686c865f79d2a40da21940875b045958.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.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
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); |