Access window controls from a class

Hi all. I’d like to reference a window’s controls from a class, modifying some control properties.

Multiple windows would have controls of the same name, each window would create an instance of the class.

Can I pass a window object or handle to a class instance and have access to that window’s controls from the class instance?

Thanks.

Use a class interface. Define methods that tell the window to update themself with this information. That way, your class doesn’t need to know the details, it just throws the data at the window and lets the window do whatever is appropriate.