From 508b1b5ca03dffc1ec2d5a98a378da4cdd30ef84 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 5 Apr 2001 01:58:04 +0000 Subject: Replace target functionality to make find and replace operations faster by diminishing screen updates and allow for \d patterns in the replacement text. --- win32/PlatWin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index c2967d2a5..90540baf6 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -696,7 +696,10 @@ void Window::SetTitle(const char *s) { } LRESULT Window::SendMessage(UINT msg, WPARAM wParam, LPARAM lParam) { - return ::SendMessage(id, msg, wParam, lParam); + if (id) + return ::SendMessage(id, msg, wParam, lParam); + else + return 0; } int Window::GetDlgCtrlID() { -- cgit v1.2.3