Changeset 2378 for trunk/src


Ignore:
Timestamp:
Jan 8, 2000, 5:53:38 PM (26 years ago)
Author:
sandervl
Message:

Message translation bugfixes

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r2371 r2378  
    1 /* $Id: oslibmenu.cpp,v 1.6 2000-01-08 14:15:06 sandervl Exp $ */
     1/* $Id: oslibmenu.cpp,v 1.7 2000-01-08 16:53:38 sandervl Exp $ */
    22/*
    33 * Window Menu wrapper functions for OS/2
     
    6262HMENU OSLibWinCreateMenu(PVOID menutemplate)
    6363{
    64     return (HMENU)WinCreateMenu(HWND_OBJECT, menutemplate);
     64   return (HMENU)WinCreateMenu(HWND_OBJECT, menutemplate);
    6565}
    6666//******************************************************************************
     
    9898   pRect->left  = rectl.xLeft;
    9999   pRect->right = rectl.xRight;
    100    pRect->top   = OSLibQueryScreenHeight() - rectl.yTop;
    101    pRect->bottom= OSLibQueryScreenHeight() - rectl.yBottom;
     100   pRect->top   = mapScreenY(rectl.yTop);
     101   pRect->bottom= mapScreenY(rectl.yBottom);
    102102   return TRUE;
    103103}
  • trunk/src/user32/oslibmsg.cpp

    r2371 r2378  
    1 /* $Id: oslibmsg.cpp,v 1.22 2000-01-08 14:15:06 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.23 2000-01-08 16:53:38 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    174174        memcpy(&os2msg, MsgThreadPtr, sizeof(QMSG));
    175175        MsgThreadPtr->time = -1;
    176         if(os2msg.hwnd || os2msg.msg == WM_QUIT) {
     176        if(msg->hwnd) {
    177177            thdb->nrOfMsgs = 1;
    178178            thdb->msgstate++; //odd -> next call to our PM window handler should dispatch the translated msg
    179179            memcpy(&thdb->msg, msg, sizeof(MSG));
     180        }
     181        if(os2msg.hwnd || os2msg.msg == WM_QUIT) {
    180182            return (LONG)WinDispatchMsg(thdb->hab, &os2msg);
    181183        }
  • trunk/src/user32/oslibmsgtranslate.cpp

    r2371 r2378  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.9 2000-01-08 14:15:06 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.10 2000-01-08 16:53:38 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    111111  int i;
    112112
    113   if(os2Msg->msg == WM_COMMAND) {
    114     i = 0;
    115   }
    116113  memset(winMsg, 0, sizeof(MSG));
    117114  win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(os2Msg->hwnd);
Note: See TracChangeset for help on using the changeset viewer.