Ignore:
Timestamp:
Oct 30, 1999, 12:55:16 PM (26 years ago)
Author:
sandervl
Message:

MapDialogRect fix

File:
1 edited

Legend:

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

    r1346 r1516  
    1 /* $Id: windlg.cpp,v 1.7 1999-10-17 20:18:46 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.8 1999-10-30 10:55:16 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    197197    return -1;
    198198}
     199/***********************************************************************
     200 *           MapDialogRect32   (USER32.382)
     201 */
     202BOOL WIN32API MapDialogRect(HWND hwndDlg, LPRECT rect)
     203{
     204  Win32Dialog *dialog;
     205
     206    dialog = (Win32Dialog *)Win32BaseWindow::GetWindowFromHandle(hwndDlg);
     207    if(!dialog || !dialog->IsDialog()) {
     208        dprintf(("MapDialogRect, window %x not found", hwndDlg));
     209        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     210        return 0;
     211    }
     212    dprintf(("USER32: MapDialogRect\n"));
     213    return dialog->MapDialogRect(rect);
     214}
    199215//******************************************************************************
    200216//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.