Changeset 849 for trunk/src


Ignore:
Timestamp:
Sep 6, 1999, 10:50:35 PM (26 years ago)
Author:
sandervl
Message:

Window text + dialog fixes

Location:
trunk/src/user32/new
Files:
2 edited

Legend:

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

    r839 r849  
    1 /* $Id: win32dlg.cpp,v 1.6 1999-09-05 17:11:25 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.7 1999-09-06 20:50:34 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    1919#include <win32dlg.h>
    2020#include "oslibmsg.h"
     21
     22#define DEFAULT_DLGFONT "9.WarpSans"
    2123
    2224//******************************************************************************
     
    6870        /* The font height must be negative as it is a point size */
    6971        /* (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
    7078        hUserFont = CreateFontW(dlgInfo.pointSize, 0, 0, 0,
    7179                            dlgInfo.weight, dlgInfo.italic, FALSE,
    7280                            FALSE, DEFAULT_CHARSET, 0, 0, PROOF_QUALITY,
    7381                            FF_DONTCARE, (LPCWSTR)dlgInfo.faceName );
     82#endif
    7483        if (hUserFont)
    7584        {
  • trunk/src/user32/new/win32wbase.cpp

    r841 r849  
    1 /* $Id: win32wbase.cpp,v 1.13 1999-09-05 18:32:26 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.14 1999-09-06 20:50:35 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    385385
    386386  if(cs->lpszName)
    387         SetWindowTextA((LPSTR)cs->lpszName);
     387  {
     388        if(isUnicode)
     389                SetWindowTextW((LPWSTR)cs->lpszName);
     390        else    SetWindowTextA((LPSTR)cs->lpszName);
     391  }
    388392
    389393  OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP,
Note: See TracChangeset for help on using the changeset viewer.