Comment fix.
Call platform API directly where possible.
Fixed possible use of invalid HWND.
Removed deprecated Doxygen options.
Merge remote-tracking branch 'upstream/master'