ItEv_SetValue 

Use

Sets the values of any of the controls in the event structure (and its related structures) directly. This is useful for setting the value of an editing box or a checkbox, for example.

Syntax

DWORD DLEX ItEv_SetValue(PIT_EVENT pEvt, ITCCTRL pCtrl, const char *val);

Parameters

pEvt

Pointer to the IT_EVENT structure to change

pCtrl

Specifies the control to change. Refer to Specifying control

val

New value of the control

Return Value

Returns TRUE on success, FALSE on error.

Comments

Below is the internal implementation of ItEv_SetValue:

DWORD DLEX ItEv_SetValue(PIT_EVENT pEvt, ITCCTRL pCtrl, char *val) {
int ctrl; // internal conversion of pCtrl to ctrl not shown here
lstrcpy(pEvt->screen.pCtrl[ctrl].value, val);
pEvt->screen.pCtrl[ctrl].bModified = 1;
return TRUE;
}

See Also

ItEv_FindControl, IT_EVENT, IT_CTRL.