COleControl::OnGetPredefinedStrings

virtual BOOL OnGetPredefinedStrings( DISPID dispid, CStringArray* pStringArray, CDWordArray* pCookieArray );

Return Value

Nonzero if elements have been added to pStringArray and pCookieArray.

Parameters

dispid

The dispatch ID of a property of the control.

pStringArray

A string array to be filled in with return values.

pCookieArray

A DWORD array to be filled in with return values.

Remarks

Called by the framework to obtain a set of predefined strings representing the possible values for a property.

Override this function if your control has a property with a set of possible values that can be represented by strings. For each element added to pStringArray, you should add a corresponding “cookie” element to pCookieArray. These “cookie” values may later be passed by the framework to the COleControl::OnGetPredefinedValue function.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::OnGetPredefinedValue, COleControl::OnGetDisplayString