Ignore:
Timestamp:
Jan 13, 2000, 2:54:55 PM (26 years ago)
Author:
sandervl
Message:

wm_activate fixes, scrollbar fix, drawframe fix

File:
1 edited

Legend:

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

    r2425 r2426  
    1 /* $Id: pmwindow.cpp,v 1.39 2000-01-12 22:07:28 cbratschi Exp $ */
     1/* $Id: pmwindow.cpp,v 1.40 2000-01-13 13:54:52 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    259259    case WM_ACTIVATE:
    260260    {
    261       HWND hwndActivate = (HWND)mp2;
    262       BOOL fMinimized = FALSE;
    263 
    264         dprintf(("OS2: WM_ACTIVATE %x %x", hwnd, hwndActivate));
    265         if(WinQueryWindowULong(hwndActivate, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) {
    266                 //another (non-win32) application's window
    267                 //set to NULL (allowed according to win32 SDK) to avoid problems
    268                 hwndActivate = NULL;
    269         }
    270         if(WinQueryWindowULong(hwnd, QWL_STYLE) & WS_MINIMIZED)
    271         {
    272            fMinimized = TRUE;
    273         }
    274 
    275         win32wnd->MsgActivate(SHORT1FROMMP(mp1), fMinimized, Win32BaseWindow::OS2ToWin32Handle(hwndActivate));
     261        dprintf(("OS2: WM_ACTIVATE %x %x", hwnd, mp2));
     262
     263        if(win32wnd->IsWindowCreated())
     264          win32wnd->MsgActivate((LOWORD(pWinMsg->wParam) == WA_ACTIVE_W) ? 1 : 0, HIWORD(pWinMsg->wParam), pWinMsg->lParam, (HWND)mp2);
     265
    276266        break;
    277267    }
Note: See TracChangeset for help on using the changeset viewer.