please dont rip this site Prev Next

COMPAREITEMSTRUCT info  Overview  Group

The COMPAREITEMSTRUCT structure supplies the identifiers and application-supplied data for two items in a sorted, owner-drawn list box or combo box.

Whenever an application adds a new item to an owner-drawn list box or combo box created with the CBS_SORT or LBS_SORT style, Windows sends the owner a WM_COMPAREITEM message. The lParam parameter of the message contains a long pointer to a COMPAREITEMSTRUCT structure. Upon receiving the message, the owner compares the two items and returns a value indicating which item sorts before the other.

typedef struct tagCOMPAREITEMSTRUCT { // cis 

    UINT  CtlType; 

    UINT  CtlID; 

    HWND  hwndItem; 

    UINT  itemID1; 

    DWORD itemData1; 

    UINT  itemID2; 

    DWORD itemData2; 

} COMPAREITEMSTRUCT; 

 

Members

CtlType
Specifies ODT_LISTBOX (an owner-drawn list box) or ODT_COMBOBOX (an owner-drawn combo box).
CtlID
Specifies the identifier of the list box or combo box.
hwndItem
Identifies the control.
itemID1
Specifies the index of the first item in the list box or combo box being compared.

This member will be -1 if the item has not been inserted or when searching for a potential item in the list box or combo box.

itemData1
Specifies application-supplied data for the first item being compared. (This value was passed as the lParam parameter of the message that added the item to the list box or combo box.)
itemID2
Specifies the index of the second item in the list box or combo box being compared.
itemData2
Specifies application-supplied data for the second item being compared. This value was passed as the lParam parameter of the message that added the item to the list box or combo box.

This member will be -1 if the item has not been inserted or when searching for a potential item in the list box or combo box.

See Also

WM_COMPAREITEM 


file: /Techref/os/win/api/win32/struc/src/str02_3.htm, 3KB, , updated: 2000/4/7 11:20, local time: 2024/11/25 04:34,
TOP NEW HELP FIND: 
3.144.8.68:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/os/win/api/win32/struc/src/str02_3.htm"> COMPAREITEMSTRUCT</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .