MainFrm: Fix initial window size when using non-defualt caption mode.

Simplify the code.