COleControl::OnGetPredefinedStrings

This member function is 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.

Syntax

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

At a Glance

Header file: Afxctl.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

COleControl Overview, COleControl Member Functions, Control Classes, COleControl::OnGetPredefinedValue, COleControl::OnGetDisplayString, CStringArray, CDWordArray