Repositioning controls on re-size.
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
My dialog bar has various controls, that don't take up the whole screen. When the main frame resizes, I want these controls to reposition themselves so they are relatively centered. For example, if a control's left side, is 150 left of the center of the main frame, I want it to always be 150 left of the center of the main frame, no matter what size the main frame is. I can't seem to come up with a simple way to do this, whereas I do not want to have to create variables for each control.