]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxTextCtrl to not process clipboard events twice if there's a custom wxEVT_COMM...
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 2 Feb 2008 22:29:19 +0000 (22:29 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 2 Feb 2008 22:29:19 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/combobox.cpp
src/msw/textctrl.cpp
src/msw/window.cpp

index bb651346225a7cbe8d9aa2ff066f8db3700fbdda..836db691312eb658dd71a2e031f1272b9133b010 100644 (file)
@@ -205,13 +205,6 @@ LRESULT APIENTRY _EXPORT wxComboEditWndProc(HWND hWnd,
                 }
             }
             break;
-
-        case WM_CUT:
-        case WM_COPY:
-        case WM_PASTE:
-            if( win->HandleClipboardEvent( message ) )
-                return 0;
-            break;
     }
 
     return ::CallWindowProc(CASTWNDPROC gs_wndprocEdit, hWnd, message, wParam, lParam);
@@ -302,6 +295,11 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
 
         case WM_KILLFOCUS:
             return HandleKillFocus((WXHWND)wParam);
+
+        case WM_CUT:
+        case WM_COPY:
+        case WM_PASTE:
+            return HandleClipboardEvent(msg);
     }
 
     return false;
index 52e5add304831a80a578745bf4983cee6df7db57..65eeb8967dc47b0a3e9d933753046934f73a66e7 100644 (file)
@@ -1881,13 +1881,6 @@ WXLRESULT wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
                 }
             }
             break;
-
-        case WM_CUT:
-        case WM_COPY:
-        case WM_PASTE:
-            if ( HandleClipboardEvent(nMsg) )
-                lRc = 0;
-            break;
     }
 
     return lRc;
index 25e1dea9284d5983f5525fb0a53eec9d9c2e8f65..0306420dec45a1d9815fe3b91bf9087340cd748d 100644 (file)
@@ -3164,6 +3164,12 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
             break;
 #endif // wxUSE_HOTKEY
 
+        case WM_CUT:
+        case WM_COPY:
+        case WM_PASTE:
+            processed = HandleClipboardEvent(message);
+            break;
+
         case WM_HSCROLL:
         case WM_VSCROLL:
             {