Next Previous Up Top Contents Index

3.7 The DUIM-OLE-CONTROL module

3.7.1 Getting the ambient properties of the control's container

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 => ...
...


OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index