Centering a CView inside a parent container that stretches?

There’s no included view that can do what you want. So your solution is the only working one.