diff --git a/wince/ceutil.c b/wince/ceutil.c index b9e00b393..df51d29ff 100755 --- a/wince/ceutil.c +++ b/wince/ceutil.c @@ -83,6 +83,14 @@ ceGetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf, XP_U16* bLen ) } } /* ceGetDlgItemText */ +void +ceSetDlgItemNum( HWND hDlg, XP_U16 id, XP_S32 num ) +{ + XP_UCHAR buf[20]; + XP_SNPRINTF( buf, sizeof(buf), "%ld", num ); + ceSetDlgItemText( hDlg, id, buf ); +} /* ceSetDlgItemNum */ + void ce_selectAndShow( HWND hDlg, XP_U16 resID, XP_U16 index ) { diff --git a/wince/ceutil.h b/wince/ceutil.h index abad3ebb9..0dfe84598 100755 --- a/wince/ceutil.h +++ b/wince/ceutil.h @@ -26,6 +26,8 @@ void ceSetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf ); void ceGetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf, XP_U16* bLen ); +void ceSetDlgItemNum( HWND hDlg, XP_U16 id, XP_S32 num ); + void ceSetDlgItemFileName( HWND hDlg, XP_U16 id, XP_UCHAR* buf ); void positionDlg( HWND hDlg );