no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-02-01 03:28:28 +00:00
parent 943ca23754
commit 582381212e
3 changed files with 58 additions and 38 deletions

View File

@@ -188,12 +188,20 @@ void wxChoice::SetString(
, const wxString& rsStr
)
{
wxFAIL_MSG(wxT("not implemented"));
SHORT nIndexType = 0;
#if 0 // should do this, but no Insert() so far
Delete(n);
Insert(n + 1, s);
#endif
::WinSendMsg(WinUtil_GetHwnd(), LM_DELETEITEM, (MPARAM)n, 0);
if (m_lWindowStyle & winLB_SORT)
nIndexType = LIT_SORTASCENDING;
else
nIndexType = LIT_END;
lIndex = (YInt32)::WinSendMsg( WinUtil_GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
,(MPARAM)rsStr.Data()
);
} // end of wxChoice::SetString
wxString wxChoice::GetString(