| 2776 | } |
| 2777 | |
| 2778 | static void |
| 2779 | macClickMenu(EventRecord *theEvent, WindowRef theWindow) |
| 2780 | { |
| 2781 | Point p; |
| 2782 | NhWindow *aWin = GetNhWin(theWindow); |
| 2783 | |
| 2784 | if (aWin->scrollBar && IsControlVisible(aWin->scrollBar)) { |
| 2785 | short code; |
| 2786 | ControlHandle theBar; |
| 2787 | |
| 2788 | p = theEvent->where; |
| 2789 | GlobalToLocal(&p); |
| 2790 | code = FindControl(p, theWindow, &theBar); |
| 2791 | if (code) { |
| 2792 | DoScrollBar(p, code, theBar, aWin); |
| 2793 | return; |
| 2794 | } |
| 2795 | } |
| 2796 | MenwClick(aWin, theEvent->where); |
| 2797 | } |
| 2798 | |
| 2799 | static short |
| 2800 | macUpdateMenu(EventRecord *theEvent, WindowPtr theWindow) |
nothing calls this directly
no test coverage detected