home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / drgwps.zip / drgpmwps.h < prev    next >
C/C++ Source or Header  |  1993-08-02  |  4KB  |  94 lines

  1. /*********************************************************************
  2.  *                                                                   *
  3.  * MODULE NAME :  drgpmwps.h             AUTHOR:  Rick Fishman       *
  4.  * DATE WRITTEN:  08-01-93                                           *
  5.  *                                                                   *
  6.  * DESCRIPTION:                                                      *
  7.  *                                                                   *
  8.  *  Common definitions and function prototypes for DRGPMWPS.EXE      *
  9.  *                                                                   *
  10.  * HISTORY:                                                          *
  11.  *                                                                   *
  12.  *  08-01-93 - Coding started.                                       *
  13.  *                                                                   *
  14.  *  Rick Fishman                                                     *
  15.  *  Code Blazers, Inc.                                               *
  16.  *  4113 Apricot                                                     *
  17.  *  Irvine, CA. 92720                                                *
  18.  *  CIS ID: 72251,750                                                *
  19.  *                                                                   *
  20.  *********************************************************************/
  21.  
  22. #if !defined(DRGPMWPS_H)
  23. #define DRGPMWPS_H
  24.  
  25. /*********************************************************************/
  26. /*------------------- APPLICATION DEFINITIONS -----------------------*/
  27. /*********************************************************************/
  28.  
  29. #define DEBUG_FILENAME        "drgpmwps.dbg"
  30.  
  31. #define PROGRAM_ICON_FILENAME "drgpmwps.ico"
  32.  
  33. #define ID_RESOURCES          10
  34.  
  35. #define IDM_EXIT              20   // Accelerator key
  36.  
  37. #ifndef CRA_SOURCE            // As of 09/03/93, CRA_SOURCE not in toolkit hdrs
  38. #  define CRA_SOURCE          0x00004000L
  39. #endif
  40.  
  41. /*********************************************************************/
  42. /*-------------------------- HELPER MACROS --------------------------*/
  43. /*********************************************************************/
  44.  
  45. #define ANCHOR(hwnd)   (WinQueryAnchorBlock( hwnd ))
  46. #define HWNDERR(hwnd)  (ERRORIDERROR(WinGetLastError( ANCHOR( hwnd ))))
  47. #define HABERR(hab)    (ERRORIDERROR(WinGetLastError( hab )))
  48. #define PARENT(hwnd)   (WinQueryWindow( hwnd, QW_PARENT ))
  49.  
  50. /**********************************************************************/
  51. /*---------------------------- STRUCTURES ----------------------------*/
  52. /**********************************************************************/
  53.  
  54. typedef struct _CNRREC                            // CONTAINER RECORD STRUCTURE
  55. {
  56.   MINIRECORDCORE mrc;
  57.   char           szFileName[ CCHMAXPATH ];        // File that icon represents
  58.  
  59. } CNRREC, *PCNRREC;
  60.  
  61. #define EXTRA_BYTES (sizeof( CNRREC ) - sizeof( MINIRECORDCORE ))
  62.  
  63. /**********************************************************************/
  64. /*----------------------- FUNCTION PROTOTYPES ------------------------*/
  65. /**********************************************************************/
  66.  
  67. // In drag.c
  68.  
  69. void    dragInit ( HWND hwndFrame, PCNRDRAGINIT pcdi );
  70. MRESULT dragOver ( HWND hwndFrame, PCNRDRAGINFO pcdi );
  71. void    dragDrop ( HWND hwndFrame, PCNRDRAGINFO pcdi );
  72.  
  73. // In drgpmwps.c
  74.  
  75. void Msg( PSZ szFormat, ... );
  76.  
  77. /**********************************************************************/
  78. /*------------------------ GLOBAL VARIABLES --------------------------*/
  79. /**********************************************************************/
  80.  
  81. #ifdef GLOBALS_DEFINED
  82. #   define DATADEF
  83. #else
  84. #   define DATADEF extern
  85. #endif
  86.  
  87. DATADEF char szCurrentPath[ CCHMAXPATH ]; // Current path where pgm was loaded
  88. DATADEF PCNRREC pCnrRecBeingDragged;      // Container Record being dragged
  89.  
  90. #endif  // DRGPMWPS_H
  91. /***************************************************************************
  92.  *                         E N D   O F   S O U R C E                       *
  93.  ***************************************************************************/
  94.