Changeset 4122 for trunk/src


Ignore:
Timestamp:
Aug 30, 2000, 3:55:28 PM (25 years ago)
Author:
sandervl
Message:

WM_SETFOCUS fix

File:
1 edited

Legend:

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

    r3873 r4122  
    1 /* $Id: pmwindow.cpp,v 1.100 2000-07-20 18:08:12 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.101 2000-08-30 13:55:28 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    778778                WinSendMsg(hwndLoseFocus, WM_SETSELECTION, (MPARAM)0, (MPARAM)0);
    779779        }
     780        //SvL: Check if window is still valid
     781        win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
     782        if(win32wnd == NULL) {
     783                return (MRESULT)rc;
     784        }
    780785        if(usSetFocus)
    781786        {
     
    789794                }
    790795          }
     796          //SvL: Check if window is still valid
     797          win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
     798          if(win32wnd == NULL) {
     799                return (MRESULT)rc;
     800          }
    791801          if(!(fsFocusChange & FC_NOSETACTIVE))
    792802          {
     
    813823                }
    814824          }
     825          //SvL: Check if window is still valid
     826          win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
     827          if(win32wnd == NULL) {
     828                return (MRESULT)rc;
     829          }
    815830          if(!(fsFocusChange & FC_NOSETACTIVE)) {
    816831                if(!winfocus || (winfocus->GetTopParent() != win32wnd->GetTopParent())) {
     
    860875      RestoreOS2TIB();
    861876      return (MRESULT)TRUE;
     877    }
     878
     879    case WM_REALIZEPALETTE:
     880    {
     881        dprintf(("OS2: WM_REALIZEPALETTE"));
     882        goto RunDefWndProc;
    862883    }
    863884
Note: See TracChangeset for help on using the changeset viewer.