Replaced direct access to the WND structure by corresponding calls to
Win32 functions.

17 files changed