Skip to content

GetWindowContainer

Otavio edited this page Jul 21, 2021 · 5 revisions

CWidgets::GetWindowContainer

What it does:

This function is pretty similar to CWidgets::GetParentWidget, where it could return either a Window Container or a GroupBox Container. In this case it will always return an instance of the first Container (Your window).

Usage:

This function is currently being used in the GetAbsolutePosition function. It will check if the parent widget (See: GetParentWidget) is the container window. If so, it will set the initial widget position accordingly.


What's next?

Next you will learn about the GetPixelation function.