CtrlLib: DropList::Add(... enable);

git-svn-id: svn://ultimatepp.org/upp/trunk@9176 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-11-11 17:55:31 +00:00
parent 2a5946e1f0
commit 29da5555e4
6 changed files with 65 additions and 40 deletions

View file

@ -118,10 +118,12 @@ void DropList::Clear() {
Update();
}
DropList& DropList::Add(const Value& _key, const Value& text)
DropList& DropList::Add(const Value& _key, const Value& text, bool enable)
{
key.Add(_key);
list.Add(text);
if(!enable)
list.SetLineCy(list.GetCount() - 1, 0);
list.Refresh();
EnableDrop();
Sync();