IDecorator_GetModel() inherits wholly from IWIDGET_GetModel().
- p:Pointer to the IDecorator object.
- i:The class id of the model the decorator will use as a source for data.
- ppm:Pointer to an IModel pointer into which the function will return a pointer to the IModel interface that supports the passed class id.
int IDecorator_GetModel(IDecorator *p, AEECLSID i, IModel **ppm);
AEE_SUCCESS - The function was able to successfully locate the model interface identified by the 'i' parameter. AEE_EFAILED - The requested model interface is not currently declared.
A pointer to the model interface associated with the decorator implementation is returned in 'ppm', or NULL if the decorator implementation does not utilize a model interface.