How to get the width of a container

Roger Waldner (roger.waldner@ibm.net)
Mon, 23 Dec 1996 22:06:14 +0100

Hi,

I am developing a new view (derived from Views.View) and this view should be
able to adjust itself dynamically to the width of the surrounding container
(eg. a form view).
Does anyone know how I can get the acutal width of the embedding container?

BTW: I tried to get the view via the context but I could only reach the
embedding model (view->context->ThisModel()). Because the view is embedded
in a container you get a Containers.Model. There, I tried to get the width
with GetEmbeddingLimits(minW, maxW, minH, maxH) but maxW is much larger than
the actual width of the embedding container.
Any other idea?

Thanks in advance and merry christmas!
Roger (roger.waldner@ibm.net)