tttek.c の MessageBox() を TTMessageBoxW() に置き換えた
@@ -716,11 +716,13 @@ | ||
716 | 716 | Caps = GetDeviceCaps(PrintDC,RASTERCAPS); |
717 | 717 | if ((Caps & RC_BITBLT) != RC_BITBLT) |
718 | 718 | { |
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; | |
724 | 726 | } |
725 | 727 | if (tk->Active) TEKCaretOff(tk); |
726 | 728 | if (tk->RubberBand) SwitchRubberBand(tk,ts,FALSE); |