mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
add ceGetDlgItemNum
This commit is contained in:
parent
af7dcc6725
commit
a09fb17708
2 changed files with 13 additions and 0 deletions
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue