svnno****@sourc*****
svnno****@sourc*****
2009年 10月 31日 (土) 22:37:50 JST
Revision: 3671 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3671 Author: maya Date: 2009-10-31 22:37:50 +0900 (Sat, 31 Oct 2009) Log Message: ----------- ChooseFont ãã¤ã¢ãã°ã§ã¹ã¿ã¤ã«ã®ã³ã³ãããã¯ã¹ãç¡å¹ã«ããã®ãããã代ããã«ã¹ã¿ã¤ã«ãåæ ãããªããã¨ã注è¨ããããã«ããã Modified Paths: -------------- trunk/installer/release/lang/English.lng trunk/installer/release/lang/German.lng trunk/installer/release/lang/Japanese.lng trunk/teraterm/ttpdlg/ttdlg.c -------------- next part -------------- Modified: trunk/installer/release/lang/English.lng =================================================================== --- trunk/installer/release/lang/English.lng 2009-10-28 12:50:47 UTC (rev 3670) +++ trunk/installer/release/lang/English.lng 2009-10-31 13:37:50 UTC (rev 3671) @@ -338,6 +338,8 @@ DLG_WIN_BLINK=Blink DLG_WIN_REVERSEATTR=Reverse +DLG_CHOOSEFONT_STC6="Font style" is not reflect to the font setting. + DLG_WINLIST_TITLE=Tera Term: Window list DLG_WINLIST_LABEL=&Window: DLG_WINLIST_OPEN=&Open Modified: trunk/installer/release/lang/German.lng =================================================================== --- trunk/installer/release/lang/German.lng 2009-10-28 12:50:47 UTC (rev 3670) +++ trunk/installer/release/lang/German.lng 2009-10-31 13:37:50 UTC (rev 3671) @@ -337,6 +337,8 @@ DLG_WIN_BLINK=Blink DLG_WIN_REVERSEATTR=Reverse +DLG_CHOOSEFONT_STC6="Font style" is not reflect to the font setting. + DLG_WINLIST_TITLE=Window list DLG_WINLIST_LABEL=&Window: DLG_WINLIST_OPEN=&Open Modified: trunk/installer/release/lang/Japanese.lng =================================================================== --- trunk/installer/release/lang/Japanese.lng 2009-10-28 12:50:47 UTC (rev 3670) +++ trunk/installer/release/lang/Japanese.lng 2009-10-31 13:37:50 UTC (rev 3671) @@ -338,6 +338,8 @@ DLG_WIN_BLINK=_Å DLG_WIN_REVERSEATTR=½] +DLG_CHOOSEFONT_STC6="X^C" ÍtHgÝèɽf³êܹñB + DLG_WINLIST_TITLE=Tera Term: EBhEÌXg DLG_WINLIST_LABEL=EBhE(&W): DLG_WINLIST_OPEN=J(&O) Modified: trunk/teraterm/ttpdlg/ttdlg.c =================================================================== --- trunk/teraterm/ttpdlg/ttdlg.c 2009-10-28 12:50:47 UTC (rev 3670) +++ trunk/teraterm/ttpdlg/ttdlg.c 2009-10-31 13:37:50 UTC (rev 3671) @@ -3100,9 +3100,40 @@ { switch (Message) { case WM_INITDIALOG: - EnableWindow(GetDlgItem(Dialog, cmb2), FALSE); + { + static LPCHOOSEFONT cf; + PTTSet ts; + char uimsg[MAX_UIMSG]; + + //EnableWindow(GetDlgItem(Dialog, cmb2), FALSE); + cf = (LPCHOOSEFONT)lParam; + ts = (PTTSet)cf->lCustData; + get_lang_msg("DLG_CHOOSEFONT_STC6", uimsg, sizeof(uimsg), + "\"Font style\" is not reflect to the font setting.", ts->UILanguageFile); + SetDlgItemText(Dialog, stc6, uimsg); + SetFocus(GetDlgItem(Dialog,cmb1)); + break; + } +#if 0 + case WM_COMMAND: + if (LOWORD(wParam) == cmb2) { + if (HIWORD(wParam) == CBN_SELCHANGE) { + // tHgÌÏXÉæé(bZ[WÉæé)X^CÌÏXÅÍ + // cmb2 ©çÌÊmªÈ¢ + SendMessage(GetDlgItem(Dialog, cmb2), CB_GETCURSEL, 0, 0); + } + } + else if (LOWORD(wParam) == cmb1) { + if (HIWORD(wParam) == CBN_SELCHANGE) { + // tHgÌÏXOÉêÛ¶³ê½X^Cª + // ±±ð²¯½ ÆÉüßÄZbg³êĵܤ椾 + SendMessage(GetDlgItem(Dialog, cmb2), CB_GETCURSEL, 0, 0); + } + } + break; +#endif } return FALSE; } @@ -3122,6 +3153,7 @@ cf.lpfnHook = (LPCFHOOKPROC)(&TFontHook); cf.nFontType = REGULAR_FONTTYPE; cf.hInstance = hInst; + cf.lCustData = (LPARAM)ts; Ok = ChooseFont(&cf); return Ok; }