Ignore:
Timestamp:
Nov 3, 1999, 11:04:24 PM (26 years ago)
Author:
cbratschi
Message:

WM_CONTEXTMENU

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r1550 r1583  
    1 /* $Id: pmwindow.cpp,v 1.50 1999-11-02 19:13:01 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.51 1999-11-03 22:04:22 cbratschi Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    877877    // Only send this message if the window is enabled
    878878        if (WinIsWindowEnabled(hwnd))
    879         {
     879        {
    880880            if(win32wnd->MsgHitTest((*(POINTS *)&mp1).x, MapOS2ToWin32Y(OSLIB_HWND_DESKTOP, hwnd, (*(POINTS *)&mp1).y))) {
    881881                    goto RunDefWndProc;
     
    884884        else    goto RunDefWndProc;
    885885        break;
     886
     887    case WM_CONTEXTMENU:
     888      {
     889        POINTL pt;
     890
     891        dprintf(("OS2: WM_CONTEXTMENU %x", hwnd));
     892        pt.x = (*(POINTS *)&mp1).x;
     893        pt.y = (*(POINTS *)&mp1).y;
     894        WinMapWindowPoints(hwnd,HWND_DESKTOP,&pt,1);
     895        pt.y = WinQuerySysValue(HWND_DESKTOP,SV_CYSCREEN)-pt.y-1;
     896        win32wnd->MsgContextMenu(pt.x,pt.y);
     897
     898        RestoreOS2TIB();
     899        return (MRESULT)TRUE;
     900      }
    886901
    887902    case WM_SYSCOLORCHANGE:
Note: See TracChangeset for help on using the changeset viewer.