Added check for m_hWnd to PreTranslateMessage

Signed-off-by: IUnknown68 <arne@salsitasoft.com>