Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltorder.hxx
  7. Use the up and down button to move the listbox's items up and down
  8. FILE HISTORY:
  9. terryk 28-Jan-1992 Created
  10. */
  11. #ifndef _BLTORDER_HXX_
  12. #define _BLTORDER_HXX_
  13. /*************************************************************************
  14. NAME: ORDER_GROUP
  15. SYNOPSIS: A group of controls which consists of a string listbox
  16. and 2 buttons ( up and down ). The user first selects
  17. an item in the listbox. Then he/she can use the up
  18. and down button to change the item position.
  19. INTERFACE:
  20. ORDER_GROUP() - constructor
  21. SetButton() - reset the button status according to the
  22. current listbox selection.
  23. PARENT: CONTROL_GROUP
  24. USES: STRING_LISTBOX, BUTTON_CONTROL
  25. HISTORY:
  26. terryk 04-Apr-1992 Created
  27. **************************************************************************/
  28. DLL_CLASS ORDER_GROUP: public CONTROL_GROUP
  29. {
  30. private:
  31. STRING_LISTBOX *_plcList;
  32. BUTTON_CONTROL *_pbcUp;
  33. BUTTON_CONTROL *_pbcDown;
  34. protected:
  35. virtual APIERR OnUserAction( CONTROL_WINDOW *, const CONTROL_EVENT & );
  36. public:
  37. ORDER_GROUP( STRING_LISTBOX *plcList,
  38. BUTTON_CONTROL *pbcUp,
  39. BUTTON_CONTROL *pbcDown,
  40. CONTROL_GROUP *pgroupOwner = NULL );
  41. VOID SetButton();
  42. };
  43. #endif // _BLTORDER_HXX_