add ceGetDlgItemNum

This commit is contained in:
ehouse 2004-04-09 02:32:27 +00:00
parent af7dcc6725
commit a09fb17708
2 changed files with 13 additions and 0 deletions

View file

@ -91,6 +91,18 @@ ceSetDlgItemNum( HWND hDlg, XP_U16 id, XP_S32 num )
ceSetDlgItemText( hDlg, id, buf ); ceSetDlgItemText( hDlg, id, buf );
} /* ceSetDlgItemNum */ } /* ceSetDlgItemNum */
XP_S32
ceGetDlgItemNum( HWND hDlg, XP_U16 id )
{
XP_S32 result = 0;
XP_UCHAR buf[24];
XP_U16 len = sizeof(buf);
ceGetDlgItemText( hDlg, id, buf, &len );
result = atoi( buf );
return result;
} /* ceGetDlgItemNum */
void void
ce_selectAndShow( HWND hDlg, XP_U16 resID, XP_U16 index ) ce_selectAndShow( HWND hDlg, XP_U16 resID, XP_U16 index )
{ {

View file

@ -27,6 +27,7 @@ void ceSetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf );
void ceGetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf, XP_U16* bLen ); void ceGetDlgItemText( HWND hDlg, XP_U16 id, XP_UCHAR* buf, XP_U16* bLen );
void ceSetDlgItemNum( HWND hDlg, XP_U16 id, XP_S32 num ); void ceSetDlgItemNum( HWND hDlg, XP_U16 id, XP_S32 num );
XP_S32 ceGetDlgItemNum( HWND hDlg, XP_U16 id );
void ceSetDlgItemFileName( HWND hDlg, XP_U16 id, XP_UCHAR* buf ); void ceSetDlgItemFileName( HWND hDlg, XP_U16 id, XP_UCHAR* buf );