home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / DRGDRO.ZIP / DRAGINFO.ZIP / DRAGINFO.H < prev    next >
Text File  |  1993-02-24  |  3KB  |  84 lines

  1. /*********** DROPINFO C Sample Program Include file (.H) *************************/
  2. /*                                                                            */
  3. /*  The DROPINFO include file defines symbolic constants used                    */
  4. /*  in the DROPINFO.C and .RC files.                                             */
  5. /*  DROPINFO local procedure declarations may appear in this file to             */
  6. /*  ensure have been declared before being used.                              */
  7. /*                                                                            */
  8. /******************************************************************************/
  9.  
  10. #define INCL_WIN
  11. #define INCL_GPI
  12. #define INCL_DOSFILEMGR
  13. #define INCL_WINSTDDRAG
  14. #define INCL_DOSSEMAPHORES
  15. #include <os2.h>                /* PM header file  */
  16.  
  17. #include <stdio.h>
  18. #include <stdlib.h>
  19. #include <string.h>
  20. #include <ctype.h>
  21.  
  22. #include "drgconfg.h"     /* dialog header */
  23.  
  24. /* general ID's */
  25. #define ID_WINDOW   256
  26. #define ID_DRAGPTR  257
  27. #define ID_EXITPROG 258
  28. #define ID_LISTBOX  259
  29.  
  30. /* menu ID's */
  31. #define ID_OPTIONS  300
  32. #define IDM_CONFIGDLG    301
  33. #define IDM_CLEARLIST    302
  34. #define IDM_DOSOMETHING  303
  35. #define IDM_DRGDRAG      304
  36. #define IDM_DRGDRAGFILES 305
  37. #define IDM_CHANGEDIR    306
  38.  
  39. /* internal window messages */
  40. #define DRI_CLOSE          WM_USER + 1
  41. #define DRI_PRINT          WM_USER + 2
  42. #define DRI_THREAD_OK      WM_USER + 3
  43. #define DRI_ERROR_THREAD   WM_USER + 4
  44. #define DRI_CREATE_THREAD  WM_USER + 5
  45. #define DRI_DISCARD        WM_USER + 6
  46. #define DRI_INIT_LIST      WM_USER + 7
  47. #define DRI_GET_CURDIR     WM_USER + 8
  48.  
  49. /* general defines */
  50. #define THREAD_STACK             (6*4096)
  51.  
  52. extern HEV    hSemThread;
  53.     
  54. extern HWND   hFileList;
  55. extern HWND   hObject;
  56.  
  57. extern USHORT usUseSelected;
  58. extern BOOL   bDrgDrag;
  59. extern BOOL   bSourceRender;
  60. extern USHORT usDrgOperation;
  61. extern USHORT usDrgReturn;
  62. extern PSZ    szDrgType;
  63. extern CHAR   szDrgRMF[];
  64. extern CHAR   szPath[];
  65. extern CHAR   szSource[];
  66. extern CHAR   szTarget[];
  67. extern CHAR   szFilePath[];
  68. extern CHAR   szSelDir[];
  69. extern USHORT usDrgControl;
  70. extern USHORT usItemsDragged;
  71. extern PDRAGINFO  pDragInfo;
  72.  
  73. typedef struct{
  74.   ULONG sz;
  75.   PDRAGINFO pd;
  76. } DISCARD_PARAM, *PDISCARD_PARAM;
  77.  
  78.  
  79. void _Optlink ThreadMain( PVOID );
  80. MRESULT EXPENTRY wpConfDrgDrag( HWND, ULONG, MPARAM, MPARAM );
  81. MRESULT EXPENTRY wpConfDrgDragFiles( HWND, ULONG, MPARAM, MPARAM );
  82. MRESULT EXPENTRY delLboxProc( HWND, ULONG, MPARAM, MPARAM );
  83. MRESULT EXPENTRY wpCDDlg( HWND, ULONG, MPARAM, MPARAM );
  84.