Diff of /ooDialog/trunk/ooDialog/oodMessaging.cpp [r9766] .. [r9767] Maximize Restore

  Switch to side-by-side view

--- a/ooDialog/trunk/ooDialog/oodMessaging.cpp
+++ b/ooDialog/trunk/ooDialog/oodMessaging.cpp
@@ -2429,34 +2429,26 @@
             }
             else
             {
-                invokeDispatch(c, pcpbd, methodName, args);
+                genericInvoke(pcpbd, methodName, args, tag);
             }
             break;
         }
 
         case TCN_KEYDOWN :
         {
-            if ( willReply )
-            {
-                invokeDirect(c, pcpbd, methodName, args);
-            }
-            else
-            {
-                invokeDispatch(c, pcpbd, methodName, args);
-            }
+            uint32_t      vKey  = (uint32_t)((NMTCKEYDOWN *)lParam)->wVKey;
+            RexxObjectPtr rxKey = c->UnsignedInt32(vKey);
+
+            c->ArrayPut(args, rxKey, 2);
+            genericInvoke(pcpbd, methodName, args, tag);
+
+            c->ReleaseLocalReference(rxKey);
             break;
         }
 
         case TCN_SELCHANGE :
         {
-            if ( willReply )
-            {
-                invokeDirect(c, pcpbd, methodName, args);
-            }
-            else
-            {
-                invokeDispatch(c, pcpbd, methodName, args);
-            }
+            genericInvoke(pcpbd, methodName, args, tag);
             break;
         }