COleControl::OnGetPredefinedStrings

This method is called by the framework to obtain a set of predefined strings representing the possible values for a property. Override this method 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 that corresonds cookie element to pCookieArray. These cookie values may later be passed by the framework to the COleControl::OnGetPredefinedValue method.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

COleControl::OnGetPredefinedValue, COleControl::OnGetDisplayString, CStringArray, CDWordArray