Your OLE control can adapt itself to match different control containers by accessing and then acting upon the control container's ambient properties.
To access the ambient properties of the container using it, your OLE control should call frame-ole-object on its own frame, and then use the facilities described in the documentation for the OLE-Control-Framework library, in "Ambient properties" on page 335.
The following example shows how a control can effectively localize itself according to the control container using it.
let obj = frame-ole-object(frame); let locale-code = OLE-util-locale(obj); let language = PRIMARYLANGID(locale-code); select (language) $LANG-NEUTRAL, $LANG-ENGLISH => ... $LANG-FRENCH => ... $LANG-SPANISH => ... ...