Fixed possible use of invalid HWND.
Removed deprecated Doxygen options.