svnno****@sourc*****
svnno****@sourc*****
2009年 10月 10日 (土) 00:46:10 JST
Revision: 3641 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3641 Author: maya Date: 2009-10-10 00:46:10 +0900 (Sat, 10 Oct 2009) Log Message: ----------- ãªãµã¤ãºã§ããã¯ãªãããã¼ããã¤ã¢ãã°ã¨ããã¼ããã£ã¹ããã¤ã¢ãã°ããåæãµã¤ãºããå°ããã§ããªãããã«ããã Modified Paths: -------------- trunk/teraterm/teraterm/clipboar.c trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/clipboar.c =================================================================== --- trunk/teraterm/teraterm/clipboar.c 2009-10-09 15:39:59 UTC (rev 3640) +++ trunk/teraterm/teraterm/clipboar.c 2009-10-09 15:46:10 UTC (rev 3641) @@ -280,6 +280,7 @@ RECT rc_edit, rc_ok, rc_cancel, rc_info; // for status bar static HWND hStatus = NULL; + static init_width, init_height; switch (msg) { case WM_INITDIALOG: @@ -363,6 +364,11 @@ SetWindowPos(hDlgWnd, NULL, p.x, p.y, 0, 0, SWP_NOSIZE | SWP_NOZORDER); + // _CAOÌúTCYðÛ¶ + GetWindowRect(hDlgWnd, &rc_dlg); + init_width = rc_dlg.right - rc_dlg.left; + init_height = rc_dlg.bottom - rc_dlg.top; + // »ÝTCY©çKvÈlðvZ GetClientRect(hDlgWnd, &rc_dlg); GetWindowRect(GetDlgItem(hDlgWnd, IDC_EDIT), &rc_edit); @@ -496,6 +502,16 @@ } return TRUE; + case WM_GETMINMAXINFO: + { + // _CAOÌúTCYæ謳ūȢæ¤É·é + LPMINMAXINFO lpmmi; + lpmmi = (LPMINMAXINFO)lp; + lpmmi->ptMinTrackSize.x = init_width; + lpmmi->ptMinTrackSize.y = init_height; + } + return FALSE; + default: return FALSE; } Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2009-10-09 15:39:59 UTC (rev 3640) +++ trunk/teraterm/teraterm/vtwin.cpp 2009-10-09 15:46:10 UTC (rev 3641) @@ -4547,6 +4547,7 @@ static int prev_instances = 0; // for status bar static HWND hStatus = NULL; + static int init_width, init_height; switch (msg) { case WM_SHOWWINDOW: @@ -4629,6 +4630,11 @@ get_lang_msg("BTN_CLOSE", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile); SetDlgItemText(hWnd, IDCANCEL, ts.UIMsg); + // _CAOÌúTCYðÛ¶ + GetWindowRect(hWnd, &rc_dlg); + init_width = rc_dlg.right - rc_dlg.left; + init_height = rc_dlg.bottom - rc_dlg.top; + // »ÝTCY©çKvÈlðvZ GetClientRect(hWnd, &rc_dlg); p.x = rc_dlg.right; @@ -4868,6 +4874,16 @@ } return TRUE; + case WM_GETMINMAXINFO: + { + // _CAOÌúTCYæ謳ūȢæ¤É·é + LPMINMAXINFO lpmmi; + lpmmi = (LPMINMAXINFO)lp; + lpmmi->ptMinTrackSize.x = init_width; + lpmmi->ptMinTrackSize.y = init_height; + } + return FALSE; + case WM_TIMER: { int n;