Changeset 6040 for trunk/src


Ignore:
Timestamp:
Jun 17, 2001, 11:08:01 PM (24 years ago)
Author:
sandervl
Message:

WS_VISIBLE flag change allowed in SetWindowLong; scrollbar fix for sizebox/grip style

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r4535 r6040  
    1 /* $Id: display.cpp,v 1.10 2000-10-26 17:22:23 sandervl Exp $ */
     1/* $Id: display.cpp,v 1.11 2001-06-17 21:08:00 sandervl Exp $ */
    22/*
    33 * Display/Monitor Win32 apis
     
    434434    RECT rcWork;
    435435
    436     dprintf(("USER32:  GetMonitorInfoA\n"));
     436    dprintf(("USER32: GetMonitorInfoA %x %x", hMonitor, lpMonitorInfo));
    437437
    438438    if ((hMonitor == xPRIMARY_MONITOR) &&
     
    462462    RECT rcWork;
    463463
    464     dprintf(("USER32:  GetMonitorInfoW\n"));
     464    dprintf(("USER32: GetMonitorInfoW %x %x", hMonitor, lpMonitorInfo));
    465465
    466466    if ((hMonitor == xPRIMARY_MONITOR) &&
     
    490490   WINDOWPLACEMENT wp;
    491491
    492     dprintf(("USER32:  MonitorFromWindow\n"));
     492    dprintf(("USER32: MonitorFromWindow %x %x", hWnd, dwFlags));
    493493
    494494    if (dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST))
     
    502502    }
    503503
     504    dprintf(("USER32: MonitorFromWindow failed"));
    504505    return NULL;
    505506}
     
    508509HMONITOR WIN32API MonitorFromRect(LPRECT lprcScreenCoords, DWORD dwFlags)
    509510{
    510     dprintf(("USER32:  MonitorFromRect\n"));
     511    dprintf(("USER32: MonitorFromRect (%d,%d)(%d,%d) %x", lprcScreenCoords->left, lprcScreenCoords->top, lprcScreenCoords->right, lprcScreenCoords->bottom, dwFlags));
    511512
    512513      if ((dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) ||
     
    518519        return xPRIMARY_MONITOR;
    519520    }
     521    dprintf(("USER32: MonitorFromRect failed"));
    520522    return NULL;
    521523}
     
    524526HMONITOR WIN32API MonitorFromPoint(POINT ptScreenCoords, DWORD dwFlags)
    525527{
    526   dprintf(("USER32:  MonitorFromPoint\n"));
     528  dprintf(("USER32: MonitorFromPoint (%d,%d) %x", ptScreenCoords.x, ptScreenCoords.y, dwFlags));
    527529
    528530  if ((dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) ||
     
    535537  }
    536538
     539  dprintf(("USER32: MonitorFromPoint failed"));
    537540  return NULL;
    538541}
     
    545548        LPARAM          dwData)
    546549{
    547   dprintf(("USER32:  EnumDisplayMonitors\n"));
    548 
    549550    RECT rcLimit;
     551
     552    dprintf(("USER32: EnumDisplayMonitors %x %x %x %x", hdcOptionalForPainting, lprcEnumMonitorsThatIntersect, lpfnEnumProc, dwData));
    550553
    551554    if (!lpfnEnumProc)
  • trunk/src/user32/pmwindow.cpp

    r6008 r6040  
    1 /* $Id: pmwindow.cpp,v 1.136 2001-06-14 11:30:56 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.137 2001-06-17 21:08:00 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    11831183#ifdef DEBUG
    11841184    case WM_QUERYFOCUSCHAIN:
    1185         dprintf(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2));
     1185        dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2));
    11861186
    11871187        RestoreOS2TIB();
    11881188        rc = pfnFrameWndProc(hwnd, msg, mp1, mp2);
    11891189        SetWin32TIB();
    1190         dprintf(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2, rc));
     1190        dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2, rc));
    11911191        break;
    11921192//        goto RunDefFrameWndProc;
  • trunk/src/user32/scroll.cpp

    r5935 r6040  
    1 /* $Id: scroll.cpp,v 1.39 2001-06-09 14:50:19 sandervl Exp $ */
     1/* $Id: scroll.cpp,v 1.40 2001-06-17 21:08:00 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    670670  CREATESTRUCTA *lpCreat = (CREATESTRUCTA *)lParam;
    671671
    672   if (!(lpCreat->style & (SBS_SIZEBOX | SBS_SIZEGRIP)) && (lpCreat->style & (SBS_LEFTALIGN | SBS_RIGHTALIGN)))
     672#ifdef __WIN32OS2__
     673  if (!((lpCreat->style & (SBS_SIZEBOX | SBS_SIZEGRIP)) && !(lpCreat->style & (SBS_SIZEBOXTOPLEFTALIGN | SBS_SIZEBOXBOTTOMRIGHTALIGN))))
     674#endif
    673675  {
    674676    if (lpCreat->style & SBS_VERT)
  • trunk/src/user32/win32wbase.cpp

    r6012 r6040  
    1 /* $Id: win32wbase.cpp,v 1.270 2001-06-14 14:49:17 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.271 2001-06-17 21:08:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    34633463                    break;
    34643464                }
    3465                 value &= ~(WS_CHILD|WS_VISIBLE);      /* Some bits can't be changed this way (WINE) */
     3465                dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x (%x)", getWindowHandle(), dwStyle, value));
     3466#ifdef DEBUG
     3467                if((value & WS_CHILD) != (dwStyle & WS_CHILD)) {
     3468                    DebugInt3(); //is this allowed?
     3469                }
     3470#endif
     3471                value &= ~(WS_CHILD);
    34663472                ss.styleOld = getStyle();
    3467                 ss.styleNew = value | (ss.styleOld & (WS_CHILD|WS_VISIBLE));
    3468                 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x", getWindowHandle(), ss.styleOld, ss.styleNew));
     3473                ss.styleNew = value | (ss.styleOld & WS_CHILD);
    34693474                SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss);
    34703475                setStyle(ss.styleNew);
    34713476                SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss);
    34723477                OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle());
     3478
     3479                //TODO: Might not be correct to use ShowWindow here
     3480                if((ss.styleOld & WS_VISIBLE) != (ss.styleNew & WS_VISIBLE)) {
     3481                    if(ss.styleNew & WS_VISIBLE)
     3482                         ShowWindow(SW_SHOWNOACTIVATE);
     3483                    else ShowWindow(SW_HIDE);
     3484                }
    34733485#ifdef DEBUG
    34743486                PrintWindowStyle(ss.styleNew, 0);
     
    37053717 Win32BaseWindow *window;
    37063718
     3719////TODO: temporary workaround for crashes in Opera (pmwinx; releasesemaphore)
     3720////      while browsing
     3721////      Not thread safe now!
    37073722////    lock(&critsect);
    37083723    if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {
Note: See TracChangeset for help on using the changeset viewer.