Fixed OnPaint in DialogController.  Release build fixes for Win32