mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-04-08 17:15:37 +02:00
Fix regression about empty combobox of Run macro dialog
This commit is contained in:
parent
59c8689ff4
commit
1a1ce04caa
@ -34,7 +34,7 @@ void RunMacroDlg::initMacroList()
|
||||
::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(TEXT("Current recorded macro")));
|
||||
|
||||
for (size_t i = 0, len = macroList.size(); i < len ; ++i)
|
||||
::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(macroList[i].getName()));
|
||||
::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(string2wstring(macroList[i].getName(), CP_UTF8).c_str()));
|
||||
|
||||
::SendDlgItemMessage(_hSelf, IDC_MACRO_COMBO, CB_SETCURSEL, 0, 0);
|
||||
_macroIndex = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user