mirror of
https://github.com/ip7z/7zip.git
synced 2026-04-21 06:03:40 +00:00
26.00
This commit is contained in:
parent
5e96a82794
commit
839151eaaa
56 changed files with 1764 additions and 984 deletions
|
|
@ -63,4 +63,13 @@ LRESULT CComboBox::GetLBText(int index, UString &s)
|
|||
}
|
||||
#endif
|
||||
|
||||
LRESULT CComboBox::AddString_SetItemData(LPCWSTR s, LPARAM lParam)
|
||||
{
|
||||
const LRESULT index = AddString(s);
|
||||
// NOTE: SetItemData((int)-1, lParam) works as unexpected.
|
||||
if (index >= 0) // optional check, because (index < 0) is not expected for normal inputs
|
||||
SetItemData((int)index, lParam);
|
||||
return index;
|
||||
}
|
||||
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue