In SetString, added test for owner draw style to cure crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,7 +44,7 @@ Visual C++ 1.5 compilation
|
|||||||
|
|
||||||
1. Change directory to wx\src\msw. Type 'nmake -f makefile.dos' to
|
1. Change directory to wx\src\msw. Type 'nmake -f makefile.dos' to
|
||||||
make the wxWindows core library.
|
make the wxWindows core library.
|
||||||
2. Change directory to wx\samples and type 'nmake -f makefile.b32'
|
2. Change directory to wx\samples and type 'nmake -f makefile.dos'
|
||||||
to make all the samples. You can also make them individually.
|
to make all the samples. You can also make them individually.
|
||||||
NOTE: only a few samples have up-to-date makefiles, e.g.
|
NOTE: only a few samples have up-to-date makefiles, e.g.
|
||||||
minimal, docview, mdi. The utils makefile does not yet work.
|
minimal, docview, mdi. The utils makefile does not yet work.
|
||||||
|
@@ -647,6 +647,7 @@ void wxListBox::SetString(const int N, const wxString& s)
|
|||||||
SetSelection(sel);
|
SetSelection(sel);
|
||||||
|
|
||||||
#if USE_OWNER_DRAWN
|
#if USE_OWNER_DRAWN
|
||||||
|
if ( m_windowStyle & wxLB_OWNERDRAW )
|
||||||
// update item's text
|
// update item's text
|
||||||
m_aItems[N]->SetName(s);
|
m_aItems[N]->SetName(s);
|
||||||
#endif //USE_OWNER_DRAWN
|
#endif //USE_OWNER_DRAWN
|
||||||
|
Reference in New Issue
Block a user