home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mclb.zip / lb.pak / DMLB.H < prev    next >
Text File  |  1995-07-27  |  2KB  |  31 lines

  1. #define ID_DMLB_DRAGMOVE     9000        /* POINTER resource IDs */
  2. #define ID_DMLB_DRAGCOPY     9001
  3. #define ID_DMLB_DRAGNONE     9002
  4. #define ID_DMLB_DRGNORTH     9003
  5. #define ID_DMLB_DRGSOUTH     9004
  6. #define ID_DMLB_DRGDEL       9005
  7.  
  8. /* WM_CONTROL notification codes from a DMLB.  Delete-type notifications are  */
  9. /* sent before the item is deleted.  Insert-type notifications are sent after */
  10. /* the insert has been completed.  The REORDER notification is sent after the */
  11. /* item has been moved in the list.                                           */
  12.  
  13. #define LN_DMLB_DELETE         999      /* Item is about to be deleted (current selection) */
  14. #define LN_DMLB_DELETE_MOVE    998      /* Item is to be deleted for moving to another listbox */
  15. #define LN_DMLB_REORDERED      997      /* An item was moved within the same listbox */
  16. #define LN_DMLB_INSERT_MOVE    996      /* Item was inserted via drag-MOVE (current selection) */
  17. #define LN_DMLB_INSERT_COPY    995      /* Item was inserted via drag-COPY (current selection) */
  18. #define LN_DMLB_QRYDROP        991      /* A drop is about to occure, return Allow/NoAllow and mode flags */
  19. #define LN_DMLB_CONTEXT        990      /* A context menu was requested on the listbox */
  20.  
  21. /* Codes for reponding to a WM_CONTROL LN_SLB_QRYDROP notification message */
  22. /* sent to owner of target of drag/drop operation                          */
  23.  
  24. #define DROPMODE_COPY   1               /* Copy the item from the source to this listbox */
  25. #define DROPMODE_MOVE   0               /* Move the item from the source to this listbox (default) */
  26. #define DROPMODE_DELETE 2               /* Delete source item, do not insert in this listbox */
  27.  
  28. BOOL EXPENTRY DMLBInitialize(           /* Function to setup DM capabilites on a listbox control */
  29.                 HWND LBHwnd,            /* Handle of listbox or MCLB window */
  30.                 HMODULE ResHMod);       /* Module to load pointer resources, NULLHANDLE if bound to EXE */
  31.