Window|Refactor: Replaced global var 'theWindow' with macro DENG_WINDOW