Ignore:
Timestamp:
Jan 15, 2004, 11:28:42 AM (22 years ago)
Author:
sandervl
Message:

KSO: Removed duplicate (and dangerous) checks on framewindows in a couple of enumerations (OSLibWinQueryClientWindow).

File:
1 edited

Legend:

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

    r10379 r10396  
    1 /* $Id: win32wbase.cpp,v 1.383 2004-01-11 12:03:18 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.384 2004-01-15 10:28:42 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    251251    }
    252252
    253     // Decrement class window counter 
     253    // Decrement class window counter
    254254    // NOTE: Must be done before ReleaseDC call for ownDC!
    255255    if(windowClass) {
     
    892892            Win32Hwnd = 0;
    893893        }
    894         // Decrement class window counter 
     894        // Decrement class window counter
    895895        // NOTE: Must be done before ReleaseDC call for ownDC!
    896896        if(windowClass) {
     
    25522552    }
    25532553
    2554     // Hack alert: This makes sure the tooltips windows in OpenOffice don't 
     2554    // Hack alert: This makes sure the tooltips windows in OpenOffice don't
    25552555    //             activate the owner windows too.
    25562556    //             First condition takes care of SetWindowPos during window
    25572557    //             creation. The 2nd one for calls made by OpenOffice
    2558     if(((getStyle() & WS_POPUP) && (getExStyle() & WS_EX_TOPMOST)) || (fuFlags & SWP_NOOWNERZORDER)) 
    2559     { 
     2558    if(((getStyle() & WS_POPUP) && (getExStyle() & WS_EX_TOPMOST)) || (fuFlags & SWP_NOOWNERZORDER))
     2559    {
    25602560        //SWP_NOOWNERZORDER means only the z-order of this window changes; it
    25612561        //should not affect the owner
     
    31963196    {
    31973197        wnd = GetWindowFromOS2FrameHandle(hwnd);
    3198         if(wnd == NULL) {
    3199             hwnd = OSLibWinQueryClientWindow(hwnd);
    3200             if(hwnd)  wnd = GetWindowFromOS2Handle(hwnd);
    3201         }
    32023198        if(wnd) {
    32033199             hwndWin32 = wnd->getWindowHandle();
     
    33433339        {
    33443340            wnd = GetWindowFromOS2FrameHandle(hwnd);
    3345             if(wnd == NULL) {
    3346                 hwnd = OSLibWinQueryClientWindow(hwnd);
    3347                 if(hwnd)  wnd = GetWindowFromOS2Handle(hwnd);
    3348             }
    3349 
    33503341            if(wnd) {
    33513342                //According to Wine, the class doesn't need to be specified
Note: See TracChangeset for help on using the changeset viewer.