Changeset 14988


Ignore:
Timestamp:
Oct 4, 2000, 9:35:31 PM (25 years ago)
Author:
sandervl
Message:

more logging

Location:
tags/trunk/src/user32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/user32/loadres.cpp

    r14202 r14988  
    1 /* $Id: loadres.cpp,v 1.29 2000-05-28 16:43:45 sandervl Exp $ */
     1/* $Id: loadres.cpp,v 1.30 2000-10-04 19:35:30 sandervl Exp $ */
    22
    33/*
     
    410410    {
    411411        hMapping = VIRTUAL_MapFileA( lpszName, (LPVOID *)&ptr, TRUE);
    412         if (hMapping == INVALID_HANDLE_VALUE) return 0;
     412        if (hMapping == INVALID_HANDLE_VALUE) {
     413                //TODO: last err set to ERROR_OPEN_FAILED if file not found; correct??
     414                dprintf(("LoadBitmapA: failed to load file %s (lasterr=%x)", lpszName, GetLastError()));
     415                return 0;
     416        }
    413417        info = (BITMAPINFO *)(ptr + sizeof(BITMAPFILEHEADER));
    414418    }
  • TabularUnified tags/trunk/src/user32/pmwindow.cpp

    r14762 r14988  
    1 /* $Id: pmwindow.cpp,v 1.103 2000-09-05 19:20:34 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.104 2000-10-04 19:35:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    10621062        /* if successful copy final position back */
    10631063        if(!WinEqualRect(0, &rcl, &track.rclTrack)) {
     1064                dprintf(("FrameTrackFrame: new (os/2) window rect: (%d,%d)(%d,%d)", track.rclTrack.xLeft, track.rclTrack.yBottom, track.rclTrack.xRight - track.rclTrack.xLeft, track.rclTrack.yTop - track.rclTrack.yBottom));
    10641065                if(flags == TF_MOVE) {
    10651066                        WinSetWindowPos(win32wnd->getOS2WindowHandle(),
  • TabularUnified tags/trunk/src/user32/win32wbasepos.cpp

    r14237 r14988  
    1 /* $Id: win32wbasepos.cpp,v 1.15 2000-06-07 14:51:32 sandervl Exp $ */
     1/* $Id: win32wbasepos.cpp,v 1.16 2000-10-04 19:35:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (nonclient/position methods)
     
    139139                winposCopy = *winpos;
    140140                params.rgrc[1] = *oldWindowRect;
     141                params.rgrc[2] = *oldClientRect;
    141142                //client rectangel must be in parent coordinates
    142                 OffsetRect(oldClientRect, rectWindow.left, rectWindow.top);
    143 
    144                 params.rgrc[2] = *oldClientRect;
     143                OffsetRect(&params.rgrc[2], rectWindow.left, rectWindow.top);
     144
    145145                params.lppos = &winposCopy;
    146146        }
  • TabularUnified tags/trunk/src/user32/windlg.cpp

    r14424 r14988  
    1 /* $Id: windlg.cpp,v 1.17 2000-07-18 18:35:40 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.18 2000-10-04 19:35:31 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    210210{
    211211  Win32Dialog *dialog;
     212#ifdef DEBUG
     213  BOOL rc;
     214  RECT dlgRect = *rect;
     215#endif
    212216
    213217    dialog = (Win32Dialog *)Win32BaseWindow::GetWindowFromHandle(hwndDlg);
     
    217221        return 0;
    218222    }
    219     dprintf(("USER32: MapDialogRect\n"));
     223#ifdef DEBUG
     224    rc = dialog->MapDialogRect(rect);
     225    dprintf(("USER32: MapDialogRect %x (%d,%d)(%d,%d) -> (%d,%d)(%d,%d)", hwndDlg, dlgRect.left, dlgRect.top, dlgRect.right, dlgRect.bottom, rect->left, rect->top, rect->right, rect->bottom));
     226    return rc;
     227#else
     228    dprintf(("USER32: MapDialogRect %x (%d,%d)(%d,%d)", hwndDlg, rect->left, rect->top, rect->right, rect->bottom));
    220229    return dialog->MapDialogRect(rect);
     230#endif
    221231}
    222232//******************************************************************************
     
    277287        return 0;
    278288    }
    279     dprintf(("USER32:  GetDlgCtrlID\n"));
     289    dprintf(("USER32: GetDlgCtrlID %x", hwnd));
    280290    return dlgcontrol->getWindowId();
    281291}
     
    292302        return 0;
    293303    }
    294     dprintf(("USER32: EndDialog\n"));
     304    dprintf(("USER32: EndDialog %x %d", hwnd, retval));
    295305    return dialog->endDialog(retval);
    296306}
     
    299309BOOL WIN32API CheckDlgButton( HWND hwnd, int id, UINT check)
    300310{
    301     dprintf(("USER32:  CheckDlgButton\n"));
     311    dprintf(("USER32: CheckDlgButton %x %d %d", hwnd, id, check));
    302312
    303313    return (BOOL)SendDlgItemMessageA(hwnd, id, BM_SETCHECK, check,0);
     
    307317BOOL WIN32API CheckRadioButton( HWND hDlg, UINT nIDFirstButton, UINT nIDLastButton, UINT  nIDCheckButton)
    308318{
    309     dprintf(("USER32:  CheckRadioButton\n"));
     319    dprintf(("USER32: CheckRadioButton %x %d %d %d", hDlg, nIDFirstButton, nIDLastButton, nIDCheckButton));
    310320
    311321    //CB: check radio buttons in interval
Note: See TracChangeset for help on using the changeset viewer.