]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/notebook.mm
Move menu messages handling from wxFrame to wxTLW in wxMSW.
[wxWidgets.git] / src / osx / cocoa / notebook.mm
index c314bc6389e4ec0eeafccc4801a944ea9770fa9d..973fcf5adeba289bc46e8d1dbb9d57581ebd3297 100644 (file)
@@ -260,6 +260,26 @@ public:
             }
         }
     }
+
+    int TabHitTest(const wxPoint & pt, long* flags)
+    {
+        int retval = wxNOT_FOUND;
+        
+        NSPoint nspt = wxToNSPoint( m_osxView, pt );
+        
+        wxNSTabView* slf = (wxNSTabView*) m_osxView;
+        
+        NSTabViewItem* hitItem = [slf tabViewItemAtPoint:nspt];
+        
+        if (!hitItem) {
+            *flags = wxBK_HITTEST_NOWHERE;
+        } else {
+            retval = [slf indexOfTabViewItem:hitItem];
+            *flags = wxBK_HITTEST_ONLABEL;
+        }
+        
+        return retval; 
+    }
 };