Ignore:
Timestamp:
Jul 18, 1999, 3:57:48 PM (26 years ago)
Author:
cbratschi
Message:

API Open32 -> PM

File:
1 edited

Legend:

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

    r325 r327  
    1 /* $Id: windlg.cpp,v 1.1 1999-07-18 10:39:52 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.2 1999-07-18 13:57:48 cbratschi Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    99 *
    1010 */
     11#include <wchar.h>
    1112#include <os2win.h>
    1213#include <misc.h>
     
    8990//******************************************************************************
    9091//******************************************************************************
    91 BOOL WIN32API SetDlgItemInt( HWND arg1, int arg2, UINT arg3, BOOL  arg4)
    92 {
     92BOOL WIN32API SetDlgItemInt( HWND hwndDlg, int idControl, UINT uValue, BOOL  fSigned)
     93{
     94    char buf[30];
     95
    9396#ifdef DEBUG
    9497    WriteLog("USER32:  SetDlgItemInt\n");
    9598#endif
    96     //get item text and translate to int
    97     return O32_SetDlgItemInt(arg1, arg2, arg3, arg4);
     99    if (fSigned) sprintf(buf,"%u",uValue);
     100    else sprintf(buf,"%d",uValue);
     101
     102    return SetDlgItemTextA(hwndDlg,idControl,buf);
    98103}
    99104//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.