Changeset 254 for trunk/src


Ignore:
Timestamp:
Jun 30, 1999, 6:08:40 PM (26 years ago)
Author:
sandervl
Message:

SystemParameterInfoA change for default font

File:
1 edited

Legend:

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

    r220 r254  
    1 /* $Id: user32.cpp,v 1.16 1999-06-26 15:07:00 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.17 1999-06-30 16:08:40 sandervl Exp $ */
    22
    33/*
     
    563563  //SvL: Correct window style (like Wine does)
    564564  if(dwStyle & WS_CHILD) {
    565         dwStyle |= WS_CLIPSIBLINGS;
    566         if(!(dwStyle & WS_POPUP)) {
    567                 dwStyle |= WS_CAPTION;
    568         }
     565        dwStyle |= WS_CLIPSIBLINGS;
     566        if(!(dwStyle & WS_POPUP)) {
     567                dwStyle |= WS_CAPTION;
     568        }
    569569  }
    570570  if(dwExStyle & WS_EX_DLGMODALFRAME)
    571571  {
    572         dwStyle &= ~WS_THICKFRAME;
     572        dwStyle &= ~WS_THICKFRAME;
    573573  }
    574574
     
    576576    WriteLog("USER32:  CreateWindow: dwExStyle = %X\n", dwExStyle);
    577577    if((int)arg2 >> 16 != 0)
    578          WriteLog("USER32:  CreateWindow: classname = %s\n", arg2);
     578         WriteLog("USER32:  CreateWindow: classname = %s\n", arg2);
    579579    else WriteLog("USER32:  CreateWindow: classname = %X\n", arg2);
    580580    WriteLog("USER32:  CreateWindow: windowname= %s\n", arg3);
     
    626626    }
    627627    if(window) {
    628         window->SetWindowHandle(hwnd);
     628        window->SetWindowHandle(hwnd);
    629629    }
    630630
     
    24352435    return O32_IsDialogMessage(arg1, arg2);
    24362436}
     2437
    24372438//******************************************************************************
    24382439//******************************************************************************
     
    29402941        memset(cmetric, 0, sizeof(NONCLIENTMETRICSA));
    29412942        cmetric->cbSize = sizeof(NONCLIENTMETRICSA);
     2943        //CB: font info not valid, needs improvements
    29422944        O32_SystemParametersInfo(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfCaptionFont),0);
    29432945        O32_SystemParametersInfo(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfMenuFont),0);
    2944         O32_SystemParametersInfo(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfStatusFont),0);
     2946        //CB: experimental change for statusbar (and tooltips)
     2947
     2948        //O32_SystemParametersInfo(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfStatusFont),0);
     2949        lstrcpyA(cmetric->lfStatusFont.lfFaceName,"WarpSans");
     2950        cmetric->lfStatusFont.lfHeight = 9;
     2951
    29452952        O32_SystemParametersInfo(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfMessageFont),0);
    29462953        cmetric->iBorderWidth     = GetSystemMetrics(SM_CXBORDER);
     
    47964803 * Remark    :
    47974804 * Status    : UNTESTED STUB
     4805
    47984806 *
    47994807 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
     
    51045112 *             If the function fails, the return value is NULL. To get extended
    51055113 *               error information, call GetLastError.
     5114
    51065115
    51075116 * Remark    :
     
    62316240
    62326241
     6242
    62336243/***********************************************************************
    62346244 *           RegisterTasklist32                [USER32.436]
     
    64626472  return res;
    64636473}
     6474
Note: See TracChangeset for help on using the changeset viewer.