Source code of Windows XP (NT5)
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.

65 lines
1.3 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: DragDrop.h
  3. *
  4. * An attempt to implement dragging and dropping between Multi-selection
  5. * listboxes.
  6. *
  7. * Created: dd-mm-93
  8. * Author: Stephen Estrop [StephenE]
  9. *
  10. * Copyright (c) 1993 Microsoft Corporation
  11. \**************************************************************************/
  12. #ifndef _INC_DRAGMULITLIST
  13. #define _INC_DRAGMULTILIST
  14. typedef struct {
  15. UINT uNotification;
  16. HWND hWnd;
  17. POINT ptCursor;
  18. DWORD dwState;
  19. } DRAGMULTILISTINFO, FAR *LPDRAGMULTILISTINFO;
  20. #define DL_BEGINDRAG (LB_MSGMAX+100)
  21. #define DL_DRAGGING (LB_MSGMAX+101)
  22. #define DL_DROPPED (LB_MSGMAX+102)
  23. #define DL_CANCELDRAG (LB_MSGMAX+103)
  24. #define DL_CURSORSET 0
  25. #define DL_MOVE 0
  26. #define DL_COPY 1
  27. #define SJE_DRAGLISTMSGSTRING "sje_DragMultiListMsg"
  28. /*---------------------------------------------------------------------
  29. ** Exported functions and variables
  30. **---------------------------------------------------------------------
  31. */
  32. UINT WINAPI
  33. InitDragMultiList(
  34. void
  35. );
  36. BOOL WINAPI
  37. MakeMultiDragList(
  38. HWND hLB
  39. );
  40. int WINAPI
  41. LBMultiItemFromPt(
  42. HWND hLB,
  43. POINT pt,
  44. BOOL bAutoScroll
  45. );
  46. VOID WINAPI
  47. DrawMultiInsert(
  48. HWND hwndParent,
  49. HWND hLB,
  50. int nItem
  51. );
  52. #endif /* _INC_DRAGMULTILIST */