Bug 3187: Teach Windows select widgets how to insert in the middle of a list (4 of 3)

git-svn-id: svn://10.0.0.236/trunk@32285 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
1999-05-19 05:02:35 +00:00
parent 1f82bdb300
commit bf40fe13d4

View File

@@ -56,7 +56,7 @@ nsComboBox::nsComboBox() : nsWindow(), nsIListWidget(), nsIComboBox()
NS_METHOD nsComboBox::AddItemAt(nsString &aItem, PRInt32 aPosition)
{
NS_ALLOC_STR_BUF(val, aItem, 256);
::SendMessage(mWnd, CB_ADDSTRING, (int)aPosition, (LPARAM)(LPCTSTR)val);
::SendMessage(mWnd, CB_INSERTSTRING, (int)aPosition, (LPARAM)(LPCTSTR)val);
NS_FREE_STR_BUF(val);
return NS_OK;
}