Ignore:
Timestamp:
Nov 24, 1999, 8:32:23 PM (26 years ago)
Author:
sandervl
Message:

desktop + misc updates

File:
1 edited

Legend:

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

    r1688 r1831  
    1 /* $Id: oslibmsg.cpp,v 1.10 1999-11-10 14:16:45 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.11 1999-11-24 19:32:21 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    1010 *
    1111 * TODO: Simply copy for now. Need to make a real translation
     12 * TODO: Filter translation isn't correct for posted messages
    1213 *
    1314 */
     
    124125void OS2ToWinMsgTranslate(QMSG *os2Msg, MSG *winMsg, BOOL isUnicode)
    125126{
     127  POSTMSG_PACKET *packet;
    126128  int i;
    127129
     
    129131  winMsg->hwnd = Win32Window::OS2ToWin32Handle(os2Msg->hwnd);
    130132
    131   if(os2Msg->msg >= WIN32APP_USERMSGBASE) {
    132         winMsg->message = os2Msg->msg - WIN32APP_USERMSGBASE;
     133  if(os2Msg->msg == WIN32APP_POSTMSG) {
     134        packet = (POSTMSG_PACKET *)os2Msg->mp2;
     135        if(packet && (ULONG)os2Msg->mp1 == WIN32PM_MAGIC) {
     136                winMsg->message = packet->Msg;
     137                winMsg->wParam  = packet->wParam;
     138                winMsg->lParam  = packet->lParam;
     139        }
    133140        return;
    134141  }
     
    150157ULONG TranslateWinMsg(ULONG msg)
    151158{
     159 POSTMSG_PACKET *packet;
    152160 THDB *thdb;
    153161
     
    157165  }
    158166
    159   if(msg >= WINWM_USER)
    160     return msg + WIN32APP_USERMSGBASE;
     167  if(msg >= WIN32APP_USERMSGBASE)
     168    return WIN32APP_POSTMSG;
    161169
    162170  for(int i=0;i<MAX_MSGTRANSTAB;i++)
Note: See TracChangeset for help on using the changeset viewer.