Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COMPAREITEMSTRUCT Structure
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  typedef struct tagCOMPAREITEMSTRUCT {
      WORD   CtlType;
      WORD   CtlID;
      HWND   hwndItem;
      WORD   itemID1;
      DWORD  itemData1;
      WORD   itemID2;
      DWORD  itemData2;
  } COMPAREITEMSTRUCT;
 
  The COMPAREITEMSTRUCT structure supplies the identifiers and
  application-supplied data for two items in a sorted owner-draw combo box
  or list box.
 
  Member      Description
 
  CtlType     Is ODT_LISTBOX (which specifies an owner-draw list box) or
              ODT_COMBOBOX (which specifies an owner-draw combo box).
 
  CtlID       Is the control ID for the list box or combo box.
 
  hwndItem    Is the window handle of the control.
 
  itemID1     Is the index of the first item in the list box or combo box
              being compared.
 
  itemData1   Is application-supplied data for the first item being
              compared. This value was passed in the call that added the
              item to the combo or list box.
 
  itemID2     Is the index of the second item in the list box or combo box
              being compared.
 
  itemData2   Is application-supplied data for the second item being
              compared. This value was passed in the call that added the
              item to the combo or list box.
 
 
                                     -♦-