Changeset 5428 for trunk/src


Ignore:
Timestamp:
Apr 1, 2001, 9:38:51 PM (24 years ago)
Author:
sandervl
Message:

minor updates

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r5404 r5428  
    1 /* $Id: pmwindow.cpp,v 1.121 2001-03-30 11:14:35 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.122 2001-04-01 19:38:51 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    11301130    {
    11311131        dprintf(("OS2: WM_REALIZEPALETTE"));
    1132         goto RunDefWndProc;
    1133     }
    1134 
    1135     case WM_OWNERPOSCHANGE:
    1136     {
    1137         dprintf(("OS2: WM_OWNERPOSCHANGE"));
    11381132        goto RunDefWndProc;
    11391133    }
     
    12481242
    12491243    case WM_QUERYFOCUSCHAIN:
    1250         dprintf(("OS2: WM_QUERYFOCUSCHAIN %x", win32wnd->getWindowHandle()));
    1251         goto RunDefFrameWndProc;
     1244        dprintf(("OS2: WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2));
     1245       
     1246        RestoreOS2TIB();
     1247        rc = pfnFrameWndProc(hwnd, msg, mp1, mp2);
     1248        SetWin32TIB();
     1249        dprintf(("OS2: WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2, rc));
     1250        break;
    12521251
    12531252    case WM_FOCUSCHANGE:
     
    12921291
    12931292        dprintf(("OS2: WM_ADJUSTFRAMEPOS %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
     1293        goto RunDefFrameWndProc;
     1294    }
     1295
     1296    case WM_OWNERPOSCHANGE:
     1297    {
     1298        PSWP pswp   = (PSWP)mp1;
     1299
     1300        dprintf(("OS2: WM_OWNERPOSCHANGE %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    12941301        goto RunDefFrameWndProc;
    12951302    }
  • trunk/src/user32/windowclass.cpp

    r5406 r5428  
    1 /* $Id: windowclass.cpp,v 1.17 2001-03-30 22:08:20 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.18 2001-04-01 19:38:51 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    5252    wc.hIconSm = 0;
    5353 
    54     //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
    55     int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
    56     int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    57 
    58     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    59                            LR_COPYFROMRESOURCE);
    60 
    6154    if(Win32WndClass::FindClass(wc.hInstance, (LPSTR)wc.lpszClassName)) {
    6255        if(HIWORD(wc.lpszClassName)) {
     
    6861    }
    6962
     63    //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
     64    int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
     65    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
     66
     67    wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     68                           LR_COPYFROMRESOURCE);
     69
    7070    wclass = new Win32WndClass(&wc,FALSE);
    7171    if(wclass == NULL) {
     
    114114    memcpy(&wc.style, lpwc, sizeof(WNDCLASSA));
    115115
    116     //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
    117     int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
    118     int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    119 
    120     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    121                            LR_COPYFROMRESOURCE);
    122 
    123116    if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) {
    124117        if(HIWORD(wc.lpszClassName)) {
     
    129122        return 0;
    130123    }
     124
     125    //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
     126    int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
     127    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
     128
     129    wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     130                           LR_COPYFROMRESOURCE);
    131131
    132132    winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE);
Note: See TracChangeset for help on using the changeset viewer.