Fix race warning

CID 1201438
Resolve static initialization order fiasco
StatusBar: less greedy invalidation

Fixes rare flickering.
MainFrame: call OnGetMinMaxInfo() before resize
Cosmetics