Convert FOR_ALL_WINDOWS to use a locally declared pointer
Additional FOR_ALL_WINDOWS usage
Merge pull request #1096 from war1025/dev/local_for_all_windows

Convert FOR_ALL_WINDOWS to use a locally declared pointer