booclient/misc.h
/**
 * @brief             Find index of an item by attached data on a control with item
 * @param box         Control to search
 * @param data        Data to match against ClientData of the control's items
 * @return            Index of the item pointing to the data or wxNOT_FOUND if
 *                    no such item found
 */
@brief             Find index of an item by attached data on a control with item
@param box         Control to search
@param data        Data to match against ClientData of the control's items
@return            Index of the item pointing to the data or wxNOT_FOUND if
no such item found
@brief Find index of an item by attached data on a control with item @param box Control to search @param data Data to match against ClientData of the control ' s items @return Index of the item pointing to the data or wxNOT_FOUND if no such item found
long findItem(wxItemContainer *box, void *data) {
  long j = box->GetCount();
  for (long i = 0; i < j; ++i) {
    if (data == box->GetClientData(i)) return i;
  }
  return wxNOT_FOUND;
}
long findItem ( wxItemContainer * box , void * data ) { long j = box -> GetCount ( ) ; for ( long i = 0 ; i < j ; ++ i ) { if ( data == box -> GetClientData ( i ) ) return i ; } return wxNOT_FOUND ; }
@brief             Find index of an item by attached data on a control with item
 @param box         Control to search
 @param data        Data to match against ClientData of the control's items
 @return            Index of the item pointing to the data or wxNOT_FOUND if
                    no such item found
@brief Find index of an item by attached data on a control with item @param box Control to search @param data Data to match against ClientData of the control ' s items @return Index of the item pointing to the data or wxNOT_FOUND if no such item found