Changeset 7703 for trunk/src


Ignore:
Timestamp:
Dec 30, 2001, 11:48:08 AM (24 years ago)
Author:
sandervl
Message:

don't send WM_SETCURSOR if mouse is captured

File:
1 edited

Legend:

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

    r7683 r7703  
    1 /* $Id: win32wbase.cpp,v 1.306 2001-12-26 11:35:39 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.307 2001-12-30 10:48:08 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    11821182{
    11831183    //TODO: hiword should be 0 if window enters menu mode (SDK docs)
    1184     SendInternalMessageA(WM_SETCURSOR, Win32Hwnd, MAKELONG(lastHitTestVal, msg->message));
     1184    //SDK: WM_SETCURSOR is not sent if the mouse is captured
     1185    if(GetCapture() == 0) {
     1186        SendInternalMessageA(WM_SETCURSOR, Win32Hwnd, MAKELONG(lastHitTestVal, msg->message));
     1187    }
    11851188
    11861189    //translated message == WM_(NC)MOUSEMOVE
     
    36993702                }
    37003703                oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    3701                 dprintf(("SetWindowLong GWL_WNDPROC %x old %x new wndproc %x", getWindowHandle(), oldval, value));
     3704                dprintf(("SetWindowLong%c GWL_WNDPROC %x old %x new wndproc %x", (fUnicode) ? 'W' : 'A', getWindowHandle(), oldval, value));
    37023705                WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW);
    37033706                break;
     
    39693972LONG  Win32BaseWindow::addRef()
    39703973{
    3971     dprintf2(("addRef %x %d", getWindowHandle(), getRefCount()+1));
     3974//    dprintf2(("addRef %x %d", getWindowHandle(), getRefCount()+1));
    39723975    return GenericObject::addRef();
    39733976}
     
    39763979LONG  Win32BaseWindow::release(char *function, int line)
    39773980{
    3978     dprintf2(("release %s %d %x %d", function, line, getWindowHandle(), getRefCount()-1));
     3981//    dprintf2(("release %s %d %x %d", function, line, getWindowHandle(), getRefCount()-1));
    39793982    return GenericObject::release();
    39803983}
Note: See TracChangeset for help on using the changeset viewer.