Ignore:
Timestamp:
May 25, 2001, 9:59:30 PM (24 years ago)
Author:
sandervl
Message:

Post(Thread)/SendMessage updates & fixes

File:
1 edited

Legend:

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

    r5777 r5805  
    1 /* $Id: pmwindow.cpp,v 1.131 2001-05-22 09:33:12 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.132 2001-05-25 19:59:29 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    167167    win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
    168168
     169////    dprintf(("window %x msg %x", (win32wnd) ? win32wnd->getWindowHandle() : 0, msg));
     170
    169171    if(!teb || (msg != WM_CREATE && win32wnd == NULL)) {
    170172        dprintf(("OS2: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
     
    199201    //NOTE-------------->>>>>> If this is changed, also change Win32WindowProc!! <<<<<<<<<<<-------------------- END
    200202
    201     if(msg == WIN32APP_POSTMSG) {
     203    if(msg >= WIN32APP_POSTMSG) {
    202204        //probably win32 app user message
     205        dprintf2(("Posted message %x->%x", msg, msg-WIN32APP_POSTMSG));
    203206        if((ULONG)mp1 == WIN32MSG_MAGICA) {
    204207            rc = (MRESULT)win32wnd->DispatchMsgA(pWinMsg);
     
    207210        if((ULONG)mp1 == WIN32MSG_MAGICW) {
    208211            rc = (MRESULT)win32wnd->DispatchMsgW(pWinMsg);
     212        }
     213        else {//broadcasted message
     214            rc = (MRESULT)win32wnd->DispatchMsgA(pWinMsg);
    209215        }
    210216        RestoreOS2TIB();
Note: See TracChangeset for help on using the changeset viewer.