Ignore:
Timestamp:
Oct 28, 2001, 11:38:14 AM (24 years ago)
Author:
sandervl
Message:

setwindowlong fix for dialogs

File:
1 edited

Legend:

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

    r6019 r7241  
    1 /* $Id: win32dlg.cpp,v 1.70 2001-06-15 14:07:22 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.71 2001-10-28 10:38:13 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    10831083    dialogFlags |= DF_END;
    10841084    idResult = retval;
     1085
    10851086    return TRUE;
    10861087}
    10871088//******************************************************************************
    10881089//******************************************************************************
    1089 LONG Win32Dialog::SetWindowLongA(int index, ULONG value, BOOL fUnicode)
     1090LONG Win32Dialog::SetWindowLong(int index, ULONG value, BOOL fUnicode)
    10901091{
    10911092    LONG oldval;
     
    10961097    case DWL_DLGPROC:
    10971098    {
    1098     //Note: Type of SetWindowLong determines new window proc type
     1099        //Note: Type of SetWindowLong determines new window proc type
    10991100        //      UNLESS the new window proc has already been registered
    11001101        //      (use the old type in that case)
    11011102        //      (VERIFIED in NT 4, SP6)
    11021103        WINDOWPROCTYPE type = WINPROC_GetProcType((HWINDOWPROC)value);
    1103     if(type == WIN_PROC_INVALID) {
    1104         type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A;
    1105     }
     1104        if(type == WIN_PROC_INVALID) {
     1105            type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A;
     1106        }
    11061107        oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    11071108        WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, type, WIN_PROC_WINDOW);
     
    11171118        return oldval;
    11181119    default:
    1119         return Win32BaseWindow::SetWindowLongA(index, value);
    1120     }
    1121 }
    1122 //******************************************************************************
    1123 //******************************************************************************
    1124 ULONG Win32Dialog::GetWindowLongA(int index, BOOL fUnicode)
     1120        return Win32BaseWindow::SetWindowLong(index, value, fUnicode);
     1121    }
     1122}
     1123//******************************************************************************
     1124//******************************************************************************
     1125ULONG Win32Dialog::GetWindowLong(int index, BOOL fUnicode)
    11251126{
    11261127    dprintf2(("Win32Dialog::GetWindowLongA %x %d", getWindowHandle(), index));
     
    11341135        return userDlgData;
    11351136    default:
    1136         return Win32BaseWindow::GetWindowLongA(index);
     1137        return Win32BaseWindow::GetWindowLong(index, fUnicode);
    11371138    }
    11381139}
Note: See TracChangeset for help on using the changeset viewer.