• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Révision10536 (tree)
l'heure2023-01-25 23:50:55
Auteurzmatsuo

Message de Log

tttek.c の MessageBox() を TTMessageBoxW() に置き換えた

Change Summary

Modification

--- trunk/teraterm/ttptek/tttek.c (revision 10535)
+++ trunk/teraterm/ttptek/tttek.c (revision 10536)
@@ -716,11 +716,13 @@
716716 Caps = GetDeviceCaps(PrintDC,RASTERCAPS);
717717 if ((Caps & RC_BITBLT) != RC_BITBLT)
718718 {
719- char uimsg[MAX_UIMSG];
720- get_lang_msg("MSG_TT_ERROR", uimsg, sizeof(uimsg), "Tera Term: Error", ts->UILanguageFile);
721- get_lang_msg("MSG_TEK_PRINT_ERROR", ts->UIMsg, sizeof(ts->UIMsg), "Printer dose not support graphics", ts->UILanguageFile);
722- MessageBox(tk->HWin,ts->UIMsg,uimsg,MB_ICONEXCLAMATION);
723- return;
719+ static const TTMessageBoxInfoW info = {
720+ "Tera Term",
721+ "MSG_TT_ERROR", L"Tera Term: Error",
722+ "MSG_TEK_PRINT_ERROR", L"Printer dose not support graphics",
723+ MB_ICONEXCLAMATION };
724+ TTMessageBoxW(tk->HWin, &info, ts->UILanguageFileW);
725+ return;
724726 }
725727 if (tk->Active) TEKCaretOff(tk);
726728 if (tk->RubberBand) SwitchRubberBand(tk,ts,FALSE);
Afficher sur ancien navigateur de dépôt.