SetWindowText (window, msg->getDisplayText ());
string = msg->getDisplayText ();   for (s=string; *s && !(*s & 0x80); s++) ; if (*s) { wchar_t *tmp = utf8_to_wchar (string); SetWindowTextW (window, tmp); xfree (tmp); } else SetWindowTextA (window, string);
update_display (HWND hwnd, GpgMsg *msg, void *exchange_cb){  HWND window;  window = find_message_window (hwnd);  if (window)    {      log_debug ("%s:%s: window handle %p\n", __FILE__, __func__, window);      SetWindowText (window, msg->getDisplayText ());      log_debug ("%s:%s: window text is now `%s'",                 __FILE__, __func__, msg->getDisplayText ());      return 0;    }  else if (exchange_cb && !opt.compat.no_oom_write)    {      return put_outlook_property (exchange_cb, "Body",                                   msg->getDisplayText ());    }  else    {      log_debug ("%s: window handle not found for parent %p\n",                 __func__, hwnd);      return -1;    }}