Add a procedure for logging WM_PARENTNOTIFY messages.