Changeset 985 for trunk/src


Ignore:
Timestamp:
Sep 19, 1999, 8:33:32 PM (26 years ago)
Author:
sandervl
Message:

Dialog fontsize & background fixes

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r949 r985  
    1 /* $Id: pmwindow.cpp,v 1.1 1999-09-15 23:18:55 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.2 1999-09-19 18:33:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    280280    case WM_ERASEBACKGROUND:
    281281    {
     282        if(win32wnd->MsgEraseBackGround(0)) {
     283                goto RunDefWndProc;
     284        }
    282285        break;
    283286    }
  • trunk/src/user32/win32dlg.cpp

    r949 r985  
    1 /* $Id: win32dlg.cpp,v 1.1 1999-09-15 23:19:00 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.2 1999-09-19 18:33:31 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    7070        /* The font height must be negative as it is a point size */
    7171        /* (see CreateFont() documentation in the Windows SDK).   */
    72 #if 0
    73         hUserFont = CreateFontA(dlgInfo.pointSize, 0, 0, 0,
    74                             dlgInfo.weight, dlgInfo.italic, FALSE,
    75                             FALSE, DEFAULT_CHARSET, 0, 0, PROOF_QUALITY,
    76                             FF_DONTCARE, DEFAULT_DLGFONT);
    77 #else
    78         hUserFont = CreateFontW(dlgInfo.pointSize, 0, 0, 0,
     72        hUserFont = CreateFontW(dlgInfo.pointSize*2, 0, 0, 0,
    7973                            dlgInfo.weight, dlgInfo.italic, FALSE,
    8074                            FALSE, DEFAULT_CHARSET, 0, 0, PROOF_QUALITY,
    8175                            FF_DONTCARE, (LPCWSTR)dlgInfo.faceName );
    82 #endif
    8376        if (hUserFont)
    8477        {
     
    925918}
    926919//******************************************************************************
     920//TODO:
    927921//******************************************************************************
    928922HWND Win32Dialog::getNextDlgTabItem(HWND hwndCtrl, BOOL fPrevious)
     
    931925}
    932926//******************************************************************************
     927//TODO
    933928//******************************************************************************
    934929Win32BaseWindow *Win32Dialog::getDlgItem(int id)
     
    1003998    wndClass.cbWndExtra    = 0;
    1004999    wndClass.hCursor       = (HCURSOR)IDC_ARROWA;
    1005     wndClass.hbrBackground = LTGRAY_BRUSH;
     1000    wndClass.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
    10061001    wndClass.lpszClassName = DIALOG_CLASS_NAMEA;
    10071002
  • trunk/src/user32/win32wbase.cpp

    r963 r985  
    1 /* $Id: win32wbase.cpp,v 1.2 1999-09-17 18:49:53 dengert Exp $ */
     1/* $Id: win32wbase.cpp,v 1.3 1999-09-19 18:33:32 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    10201020
    10211021    if (hdcErase == 0)
    1022         hdcErase = O32_GetDC(OS2Hwnd);
     1022        hdcErase = GetDC(Win32Hwnd);
    10231023
    10241024    if(isIcon)
     
    10271027        rc = SendInternalMessageA(WM_ERASEBKGND, hdcErase, 0);
    10281028    if (hdc == 0)
    1029         O32_ReleaseDC(OS2Hwnd, hdcErase);
     1029        ReleaseDC(Win32Hwnd, hdcErase);
    10301030    return (rc);
    10311031}
     
    14651465{
    14661466    dprintf(("Win32BaseWindow::SetIcon %x", hIcon));
    1467     return OSLibWinSetIcon(OS2HwndFrame, hIcon);
     1467    if(OSLibWinSetIcon(OS2HwndFrame, hIcon) == TRUE) {
     1468        SendInternalMessageA(WM_SETICON, hIcon, 0);
     1469        return TRUE;
     1470    }
     1471    return FALSE;
    14681472}
    14691473//******************************************************************************
  • trunk/src/user32/winmenu.cpp

    r961 r985  
    1 /* $Id: winmenu.cpp,v 1.2 1999-09-16 15:14:18 phaller Exp $ */
     1/* $Id: winmenu.cpp,v 1.3 1999-09-19 18:33:32 sandervl Exp $ */
    22
    33/*
     
    236236//******************************************************************************
    237237//******************************************************************************
    238 ODINFUNCTION2(HMENU,GetSystemMenu,HWND,hSystemWindow,
    239                                   BOOL,bRevert)
     238HMENU WIN32API GetSystemMenu(HWND hSystemWindow, BOOL bRevert)
    240239{
    241240  dprintf(("USER32: GetSystemMenu not implemented correctly."));
Note: See TracChangeset for help on using the changeset viewer.