Changeset 4444 for trunk/src


Ignore:
Timestamp:
Oct 6, 2000, 5:15:00 PM (25 years ago)
Author:
sandervl
Message:

OemToCharBuffA + DefDlgProc/WM_ERASEBKGND fixes

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r3209 r4444  
    1 /* $Id: char.cpp,v 1.13 2000-03-23 23:06:51 sandervl Exp $ */
     1/* $Id: char.cpp,v 1.14 2000-10-06 15:15:00 sandervl Exp $ */
    22
    33/*
     
    379379//******************************************************************************
    380380//******************************************************************************
    381 BOOL WIN32API OemToCharBuffA( LPCSTR arg1, LPSTR arg2, DWORD  arg3)
    382 {
     381BOOL WIN32API OemToCharBuffA( LPCSTR src, LPSTR dest, DWORD count)
     382{
     383 BOOL rc;
     384
    383385    dprintf(("USER32:  OS2OemToCharBuffA\n"));
    384     return O32_OemToCharBuff(arg1, arg2, arg3);
     386    rc = O32_OemToCharBuff(src, dest, count);
     387    if(rc) {
     388        //SvL: Open32 replaces special character (i.e. /r & /n) with 0xff
     389        //     -> break edit control (OEMCONVERT) (i.e. Netscape 6 install license control)
     390        for(int i=0;i<count;i++) {
     391                if(dest[i] == 0xFF) {
     392                        dest[i] = src[i];
     393                }
     394        }
     395    }
     396    return rc;
    385397}
    386398//******************************************************************************
  • trunk/src/user32/win32dlg.cpp

    r4434 r4444  
    1 /* $Id: win32dlg.cpp,v 1.52 2000-10-05 18:37:26 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.53 2000-10-06 15:15:00 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    718718      int rc;
    719719
    720         if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
     720//        if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
     721        if (!windowClass) return 0;
    721722
    722723        rc = GetClipBox( (HDC)wParam, &rect );
    723724        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    724725        {
     726#if 0
    725727            HBRUSH hBrush = windowClass->getBackgroundBrush();
    726728
     
    728730                hBrush = GetSysColorBrush(hBrush-1);
    729731
    730             FillRect( (HDC)wParam, &rect, hBrush);
     732            FillRect( (HDC)wParam, &rect, hbrush);
     733#else
     734            //SvL: Ignore class background brush
     735            FillRect((HDC)wParam, &rect, GetSysColorBrush(COLOR_BTNFACE));
     736#endif
    731737        }
    732738
Note: See TracChangeset for help on using the changeset viewer.