please dont rip this site Prev Next

TV_SORTCB info  Overview  Group

The TV_SORTCB structure contains information used to sort child items in a tree-view control.

typedef struct _TV_SORTCB { tvscb 

    HTREEITEM    hParent; 

    PFNTVCOMPARE lpfnCompare; 

    LPARAM       lParam; 

} TV_SORTCB, FAR *LPTV_SORTCB; 

 

Members

lpfnCompare
Pointer to an application-defined callback function, which is called during a sort operation each time the relative order of two list items needs to be compared. The callback function has the following form:
 

int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, 

    LPARAM lParamSort); 

 

The callback function must return a negative value if the first item should precede the second, a positive value if the first item should follow the second, or zero if the two items are equivalent.

The lParam1 and lParam2 parameters correspond to the lParam member of the TV_ITEM structure for the two items being compared. The lParamSort parameter corresponds to the lParam member of the TV_SORTCB structure that was passed with the TVM_SORTCHILDRENCB message.

hParent
Handle to the parent item.
lParam
Application-defined 32-bit value.

Remarks

This structure is used with the TVM_SORTCHILDRENCB message.

See Also

TV_ITEM, TVM_SORTCHILDRENCB


file: /Techref/os/win/api/win32/struc/src/str22_12.htm, 2KB, , updated: 2000/4/7 11:20, local time: 2024/11/30 02:37,
TOP NEW HELP FIND: 
18.225.92.60: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://sxlist.com/Techref/os/win/api/win32/struc/src/str22_12.htm"> TV_SORTCB</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 sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .