Fix race warning

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

Fixes rare flickering.
MainFrame: call OnGetMinMaxInfo() before resize
Cosmetics
SysVersion: use 'static' for local functions
MainFrame: don't auto-zoom while aero-snapped
MainFrame: adjust auto-zoom logic

Refactoring, minor tweaks to snap persistence, and reworked
EC_VIDEO_SIZE_CHANGED graph event handling.

Refs #3704
Add new color button control
Use new color button control
PPageCapture: change controls z-order

Fixes #4238
PlaylistBar: drag and drop deeply nested folders

Support it.
Discard .ini cache when it's not being accessed

Refs #4193
Use the right prefix for bool variable
FileAssoc: don't use static methods
FileAssoc: don't use static variables
Construct CAppSettings in InitInstance()

It allows us to use COM objects in CAppSettings ctor.
Reduce header dependencies
Cosmetics

Placed 'extern' functions together.
Marked local functions as 'static'.
And some minor clean-ups and cosmetics.
Use 'override' keyword