How to create a health bar that changes size at runtime?

It’s not defined at all at the moment LOL. I’ve yet to design UI using C++ at all so I’m not sure where to start with what header files to include and classes to use but this puts me in the right direction.