diff --git a/sakura_core/apiwrap/StdControl.h b/sakura_core/apiwrap/StdControl.h index 0ac3786f46..f02c60ff0a 100644 --- a/sakura_core/apiwrap/StdControl.h +++ b/sakura_core/apiwrap/StdControl.h @@ -41,6 +41,7 @@ UNICODE版では問題無いが、ANSI版では設定の前にコード変換す #include #include +#include #include "mem/CNativeW.h" #include @@ -219,6 +220,15 @@ namespace ApiWrap{ { ::SendMessage( hwndCombo, CB_GETEDITSEL, WPARAM( &dwSelStart ), LPARAM( &dwSelEnd ) ); } + inline void Combo_SHAutoComplete( HWND hwndCombo, DWORD dwFlags ) + { + COMBOBOXINFO comboInfo; + comboInfo.cbSize = sizeof(comboInfo); + if (0 != GetComboBoxInfo(hwndCombo, &comboInfo)) + { + SHAutoComplete(comboInfo.hwndItem, dwFlags); + } + } // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // // リストボックス // diff --git a/sakura_core/dlg/CDlgGrep.cpp b/sakura_core/dlg/CDlgGrep.cpp index 3c8bd1b625..cf8ff7e208 100644 --- a/sakura_core/dlg/CDlgGrep.cpp +++ b/sakura_core/dlg/CDlgGrep.cpp @@ -323,6 +323,9 @@ BOOL CDlgGrep::OnInitDialog( HWND hwndDlg, WPARAM wParam, LPARAM lParam ) Combo_SetExtendedUI( GetItemHwnd( IDC_COMBO_EXCLUDE_FILE ), TRUE ); Combo_SetExtendedUI( GetItemHwnd( IDC_COMBO_EXCLUDE_FOLDER ), TRUE ); + /* 入力補完を機能させる */ + Combo_SHAutoComplete(GetItemHwnd( IDC_COMBO_FOLDER ), SHACF_FILESYS_DIRS|SHACF_AUTOAPPEND_FORCE_ON); + /* ダイアログのアイコン */ //2002.02.08 Grepアイコンも大きいアイコンと小さいアイコンを別々にする。 HICON hIconBig, hIconSmall;