Added support for app side custom window message handler code.