Developer

API Reference

IValueModel_SetTextPtr()

Brew Release
Brew MP 1.0.2
See Also
- Model Events
- IValueModel_SetValue()
- IValueModel_SetText()
Description
This function changes the AECHAR text stored in a value model.
Parameters
  • pif
    []:
    Pointer to the IValueModel interface object.
  • pwText
    []:
    Pointer to the text to be stored into the value model.
  • nLen
    []:
    The length of the text to be stored into the value model.
Interface
Prototype
   void IValueModel_SetTextPtr(IValueModel *pif, const AECHAR *pwText, int nLen)
Return
None
Side Effect
Changing the text stored in the value model by calling IValueModel_SetTextPtr() will cause BREW to send an EVT_MDL_VALUE ModelEvent to any object that has registered as a listener with the model.
IValueModel_SetText() calls IValueModel_SetValue().
Comment
The value model is not responsible for freeing the memory occupied by the text. Callers may not use a custom PFNVALUEFREE callback to free the memory occupied by the text.
  • Follow