Revision: 7776 https://osdn.net/projects/ttssh2/scm/svn/commits/7776 Author: maya Date: 2019-06-17 00:58:18 +0900 (Mon, 17 Jun 2019) Log Message: ----------- テンプレートを使用した GetOpenFileName(), GetSaveFileName() ダイアログをリサイズできるようにした #39314 対応 - OFN_ENABLETEMPLATE | OFN_ENABLEHOOK には OFN_EXPLORER | OFN_ENABLESIZING を追加する Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/39314 Modified Paths: -------------- trunk/teraterm/ttpfile/ttfile.c -------------- next part -------------- Modified: trunk/teraterm/ttpfile/ttfile.c =================================================================== --- trunk/teraterm/ttpfile/ttfile.c 2019-06-16 15:49:30 UTC (rev 7775) +++ trunk/teraterm/ttpfile/ttfile.c 2019-06-16 15:58:18 UTC (rev 7776) @@ -521,7 +521,7 @@ switch (FuncId) { case GTF_LOG: ofn.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT; - ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER; + ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_ENABLESIZING; ofn.lpTemplateName = MAKEINTRESOURCE(IDD_FOPT); ofn.lpfnHook = (LPOFNHOOKPROC)(&LogFnHook); @@ -530,7 +530,7 @@ break; case GTF_SEND: ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY; - ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER; + ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_ENABLESIZING; ofn.lpTemplateName = MAKEINTRESOURCE(IDD_FOPT); ofn.lpfnHook = (LPOFNHOOKPROC)(&TransFnHook); @@ -742,7 +742,7 @@ ofn.Flags |= OFN_SHOWHELP; ofn.lCustData = 0; if (FuncId==GMF_Z) { - ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER; + ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_ENABLESIZING; ofn.lCustData = (DWORD)Option; ofn.lpfnHook = (LPOFNHOOKPROC)(&TransFnHook); ofn.lpTemplateName = MAKEINTRESOURCE(IDD_FOPT); @@ -1180,7 +1180,7 @@ else { ofn.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT; } - ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER; + ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_ENABLESIZING; ofn.Flags |= OFN_SHOWHELP; ofn.lCustData = (DWORD)&opt; ofn.lpstrTitle = fv->DlgCaption;