Exemplo n.º 1
0
static BOOL ctl_text_start( ctl_elt *elt, WPI_INST inst, HWND dlg, void *ptr, BOOL ___b )
/***************************************************************************************/
/* start a text field */
{
    inst = inst;

    SetDlgItemText( dlg, elt->control, _str_ptr( ptr, elt ) );

    return( TRUE );
}
Exemplo n.º 2
0
static bool ctl_text_start( ctl_elt *elt, WPI_INST inst, HWND dlg, void *ptr, bool ___b )
/***************************************************************************************/
/* start a text field */
{
    ___b=___b;
    inst = inst;

    SetDlgItemText( dlg, elt->control, _str_ptr( ptr, elt ) );

    return( true );
}
Exemplo n.º 3
0
static BOOL ctl_text_finish( ctl_elt *elt, WPI_INST inst, HWND dlg,
                             void *ptr, finish_type ___f )
/*****************************************************************/
/* end a text field */
{
    char                *str;

    inst = inst;

    str = _str_ptr( ptr, elt );

    GetDlgItemText( dlg, elt->control, str, elt->info.text.text_size );

    str[elt->info.text.text_size - 1]= '\0'; // in case of overflow

    return( TRUE );
}