#if wxUSE_CHECKLISTBOX
+#include "wx/checklst.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
- #include "wx/checklst.h"
#endif //WX_PRECOMP
IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
#include "wx/button.h"
#include "wx/listbox.h"
#include "wx/slider.h"
+ #include "wx/checklst.h"
#endif
#include "wx/spinctrl.h"
#if wxUSE_SPINBTN
#include "wx/spinbutt.h"
#endif
-#if wxUSE_CHECKLISTBOX
- #include "wx/checklst.h"
-#endif
#if wxUSE_TOGGLEBTN
#include "wx/tglbtn.h"
#endif
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/settings.h"
+ #include "wx/checklst.h"
#endif
#include "wx/arrstr.h"
-#include "wx/checklst.h"
#include "wx/gtk/private.h"
#include "wx/gtk/treeentry_gtk.h"
int wxListBox::GetSelection() const
{
- wxCHECK_MSG( m_treeview != NULL, -1, wxT("invalid listbox"));
- wxCHECK_MSG( HasFlag(wxLB_SINGLE), -1,
+ wxCHECK_MSG( m_treeview != NULL, wxNOT_FOUND, wxT("invalid listbox"));
+ wxCHECK_MSG( HasFlag(wxLB_SINGLE), wxNOT_FOUND,
wxT("must be single selection listbox"));
GtkTreeIter iter;
// only works on single-sel
if (!gtk_tree_selection_get_selected(selection, NULL, &iter))
- return -1;
+ return wxNOT_FOUND;
GtkTreePath* path =
gtk_tree_model_get_path(GTK_TREE_MODEL(m_liststore), &iter);
int wxListBox::GetSelections( wxArrayInt& aSelections ) const
{
- wxCHECK_MSG( m_treeview != NULL, -1, wxT("invalid listbox") );
+ wxCHECK_MSG( m_treeview != NULL, wxNOT_FOUND, wxT("invalid listbox") );
aSelections.Empty();
#include "wx/intl.h"
#include "wx/utils.h"
#include "wx/settings.h"
+ #include "wx/checklst.h"
#endif
#include "wx/arrstr.h"
-#include "wx/checklst.h"
#include "wx/gtk1/private.h"
#if wxUSE_TOOLTIPS
int wxListBox::GetSelection() const
{
- wxCHECK_MSG( m_list != NULL, -1, wxT("invalid listbox") );
+ wxCHECK_MSG( m_list != NULL, wxNOT_FOUND, wxT("invalid listbox") );
GList *child = m_list->children;
int count = 0;
count++;
child = child->next;
}
- return -1;
+ return wxNOT_FOUND;
}
int wxListBox::GetSelections( wxArrayInt& aSelections ) const
{
- wxCHECK_MSG( m_list != NULL, -1, wxT("invalid listbox") );
+ wxCHECK_MSG( m_list != NULL, wxNOT_FOUND, wxT("invalid listbox") );
// get the number of selected items first
GList *child = m_list->children;
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
+#include "wx/checklst.h"
+
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/colour.h"
#endif
#include "wx/ownerdrw.h"
-#include "wx/checklst.h"
#include "wx/msw/wrapwin.h"
#include <windowsx.h>
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_CHECKLISTBOX
+#include "wx/checklst.h"
+
#ifndef WX_PRECOMP
#endif
-#include "wx/checklst.h"
-
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
-#if wxUSE_OWNER_DRAWN
+#if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
+
+#include "wx/checklst.h"
#ifndef WX_PRECOMP
#include "wx/object.h"
#endif
#include "wx/ownerdrw.h"
-#include "wx/checklst.h"
#include "wx/palmos/wrapwin.h"
return wxNOT_FOUND;
}
-#endif
+#endif // wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
#if wxUSE_CHECKLISTBOX
+#include "wx/checklst.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
-
#include "wx/dcclient.h"
- #include "wx/checklst.h"
#include "wx/validate.h"
#endif
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/checklst.h"
#endif
-#include "wx/checklst.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()