[Bug 509] - Convert HWND to a void* (references: 3486)