diff --git a/samples/htlbox/htlbox.cpp b/samples/htlbox/htlbox.cpp index 06563fe4d7..1a87b03df6 100644 --- a/samples/htlbox/htlbox.cpp +++ b/samples/htlbox/htlbox.cpp @@ -316,7 +316,7 @@ void MyFrame::OnToggleMulti(wxCommandEvent& event) void MyFrame::OnSelectAll(wxCommandEvent& WXUNUSED(event)) { - m_hlbox->SelectRange(0, m_hlbox->GetItemCount() - 1); + m_hlbox->SelectAll(); } void MyFrame::OnUpdateUISelectAll(wxUpdateUIEvent& event) @@ -412,14 +412,10 @@ MyHtmlListBox::MyHtmlListBox(wxWindow *parent, bool multi) SetItemCount(m_file.GetLineCount()); } #else - SetItemCount(10); + SetItemCount(1000); #endif - // select something - if ( HasMultipleSelection() ) - Select(3); - else - SetSelection(3); + SetSelection(3); } void MyHtmlListBox::OnDrawSeparator(wxDC& dc, wxRect& rect, size_t) const diff --git a/samples/htlbox/htlbox.dsp b/samples/htlbox/htlbox.dsp index ab278a2852..b80d905147 100644 --- a/samples/htlbox/htlbox.dsp +++ b/samples/htlbox/htlbox.dsp @@ -149,11 +149,11 @@ SOURCE=.\htlbox.cpp # End Source File # Begin Source File -SOURCE=..\..\src\generic\htmllbox.cpp +SOURCE=.\htlbox.rc # End Source File # Begin Source File -SOURCE=.\htlbox.rc +SOURCE=..\..\src\generic\htmllbox.cpp # End Source File # Begin Source File @@ -161,10 +161,6 @@ SOURCE=..\..\src\generic\vlbox.cpp # End Source File # Begin Source File -SOURCE=..\..\src\generic\selstore.cpp -# End Source File -# Begin Source File - SOURCE=..\..\src\generic\vscroll.cpp # End Source File # End Target