home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / s12412.zip / OSFINDR.H < prev    next >
Text File  |  1989-06-22  |  1KB  |  42 lines

  1. /*
  2.  * OS/2 PM File Finder Utility - HEADER FILE
  3.  *
  4.  * LANGUAGE      : Microsoft C5.1
  5.  * MODEL         : small
  6.  * ENVIRONMENT   : Microsoft OS/2 PM SDK
  7.  * STATUS        : operational
  8.  *
  9.  * 11/01/88 1.00 - Jerry Weldon - initial creation.
  10.  *
  11.  */
  12.  
  13. /* resource ids */
  14. #define ID_FINDER         1
  15.  
  16. /* dialog ids */
  17. #define IDD_PATTERN       100
  18. #define IDD_DRIVES        101
  19. #define IDD_FILES         102
  20. #define IDD_SEARCH        103
  21. #define IDD_RUN           104
  22. #define IDD_QUIT          105
  23. #define IDD_ABOUTDLG      200
  24.  
  25. /* menu ids */
  26. #define IDM_ABOUT         101
  27.  
  28. /* macro definitions */
  29. #define ABS(x)            ((x)<0?(-(x)):(x))
  30. #define HWNDOWNER(h)      WinQueryWindow( h, QW_OWNER, FALSE )
  31. #define HWNDPARENT(h)     WinQueryWindow( h, QW_PARENT, FALSE )
  32. #define MAPWINDOWRECTS(hwndFrom,hwndTo,prcl,crcl) \
  33.           WinMapWindowPoints( hwndFrom, hwndTo, (PPOINTL)prcl, 2*crcl )
  34.  
  35. /* function prototypes */
  36. MRESULT EXPENTRY FinderDlgProc( HWND, USHORT, MPARAM, MPARAM );
  37. MRESULT EXPENTRY AboutDlgProc( HWND, USHORT, MPARAM, MPARAM );
  38. static BOOL Directory( NPSZ, USHORT, HWND );
  39. static VOID CenterPopup( HWND, HWND );
  40. static VOID MakeDateString( FDATE, NPSZ );
  41. static VOID MakeTimeString( FTIME, NPSZ );
  42.