API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IMENUCTL_SORTCUSTOM()

Brew Release
Brew MP 1.0.2
See Also
Description
Sorts a menu using a user-supplied comparison callback, allowing menus to be sorted by criteria other than simple name/value comparisons. The function updates the screen if the menu MP_NO_REDRAW flag is unset.
Params
pIMenuCtl
[]:
pointer to the IMenuCtl interface object.
pfn
[]:
user sort comparison callback.
pUser
[]:
pointer to user context passed to comparison function.
Interface
  • IMENUCTL
Prototype
  •   void IMENUCTL_SortCustom
      (
        IMenuCtl * pIMenuCtl,
        PFNMENUSORTCOMPARE pfn,
        void * pUser
      );
    
Return
  • None
Side Effect
  • None.
Comments
None