diff --git a/docs/msw/install.txt b/docs/msw/install.txt index ddedd6764d..6e5f894c28 100644 --- a/docs/msw/install.txt +++ b/docs/msw/install.txt @@ -44,7 +44,7 @@ Visual C++ 1.5 compilation 1. Change directory to wx\src\msw. Type 'nmake -f makefile.dos' to 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. NOTE: only a few samples have up-to-date makefiles, e.g. minimal, docview, mdi. The utils makefile does not yet work. diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 3971e400ee..8c8922b504 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -646,10 +646,11 @@ void wxListBox::SetString(const int N, const wxString& s) if (sel >= 0) SetSelection(sel); - #if USE_OWNER_DRAWN - // update item's text - m_aItems[N]->SetName(s); - #endif //USE_OWNER_DRAWN +#if USE_OWNER_DRAWN + if ( m_windowStyle & wxLB_OWNERDRAW ) + // update item's text + m_aItems[N]->SetName(s); +#endif //USE_OWNER_DRAWN } int wxListBox::Number (void) const