Options Dialog: save right after pressing Apply

Fixes #2242, #2373
MainFrm: add the ability to update control states through messages
Rewrite mouse handling code

Fixes #1300, #1556, #2081, #3284
D3DFS: remove horizontal margin from osd posbar

The bug with autohiding is now fixed and there's no reason to have it
there
Call OnIdle() less frequently
MainFrm: remove unused variable
ShockwaveFlash: remove unnecessary hack

Current flash resets zoom level after each start anyway

Fixes #2176
ChildView: remove unneeded critical section
Prevent locking desktop window when aero is on

Fixes #903