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/oslibmsgtranslate.cpp

    r2418 r2426  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.12 2000-01-12 15:14:15 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.13 2000-01-13 13:54:52 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    2323#include <misc.h>
    2424#include "oslibmsg.h"
    25 #include <win32wnd.h>
     25#include "win32wnd.h"
     26#include "win32wdesktop.h"
    2627#include "oslibutil.h"
    2728#include "timer.h"
     
    104105ULONG GetMouseKeyState()
    105106{
    106   ULONG keystate;
     107  ULONG keystate = 0;
    107108
    108109  if(WinGetKeyState(HWND_DESKTOP, VK_BUTTON1) & 0x8000)
     
    349350        if(WinQueryWindowULong(hwndActivate, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) {
    350351                //another (non-win32) application's window
    351                 //set to NULL (allowed according to win32 SDK) to avoid problems
    352                 hwndActivate = NULL;
     352                //set to desktop window handle
     353                hwndActivate = windowDesktop->getWindowHandle();
    353354        }
    354355        else    hwndActivate = Win32BaseWindow::OS2ToWin32Handle(hwndActivate);
     
    441442          winMsg->wParam  = (WPARAM)hittest;
    442443          winMsg->lParam  = MAKELONG(winMsg->pt.x,winMsg->pt.y);
    443         } else
     444        }
     445        else
    444446        {
    445447          winMsg->message = WINWM_MOUSEMOVE;
Note: See TracChangeset for help on using the changeset viewer.