Last change
on this file since 908 was 907, checked in by Steven Levine, 18 years ago |
Avoid out of memory traps in Compare Directories
Rework Compare Directories progress display for 2 second update rate
Start refactoring to reduce dependence on fm3dll.h
Add timer services (IsITimerExpired etc.)
|
File size:
1.5 KB
|
Rev | Line | |
---|
[907] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: $
|
---|
| 5 |
|
---|
| 6 | compare interface
|
---|
| 7 |
|
---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2001, 2008 Steven H. Levine
|
---|
| 10 |
|
---|
| 11 | 05 Jan 08 SHL Split from fm3dll.h
|
---|
| 12 |
|
---|
| 13 | ***********************************************************************/
|
---|
| 14 |
|
---|
| 15 | #if !defined(COMP_H)
|
---|
| 16 |
|
---|
| 17 | #define COMP_H
|
---|
| 18 |
|
---|
| 19 | // #include <stdio.h> // FILE
|
---|
| 20 | // #include <time.h> // time_t
|
---|
| 21 |
|
---|
| 22 | #if !defined(OS2_INCLUDED)
|
---|
| 23 | #define INCL_WINSTDCNR // dircnrs.h
|
---|
| 24 | #include <os2.h>
|
---|
| 25 | #else
|
---|
| 26 | #if !defined(INCL_WINSTDCNR)
|
---|
| 27 | #error INCL_WINSTDCNR required
|
---|
| 28 | #endif
|
---|
| 29 | #endif
|
---|
| 30 |
|
---|
| 31 | #include "dircnrs.h" // DIRCNRDATA
|
---|
| 32 |
|
---|
| 33 | #ifdef DEFINE_GLOBALS
|
---|
| 34 | #pragma data_seg(GLOBAL1)
|
---|
| 35 | #endif
|
---|
| 36 |
|
---|
| 37 | typedef struct
|
---|
| 38 | {
|
---|
| 39 | USHORT size;
|
---|
| 40 | USHORT dummy;
|
---|
| 41 | CHAR file1[CCHMAXPATH];
|
---|
| 42 | CHAR file2[CCHMAXPATH];
|
---|
| 43 | HWND hwndParent;
|
---|
| 44 | HWND hwndList;
|
---|
| 45 | HWND hwndReport;
|
---|
| 46 | HWND hwndHelp;
|
---|
| 47 | }
|
---|
| 48 | FCOMPARE;
|
---|
| 49 |
|
---|
| 50 | typedef struct COMPARE
|
---|
| 51 | {
|
---|
| 52 | USHORT size;
|
---|
| 53 | HWND hwnd;
|
---|
| 54 | HWND hwndParent;
|
---|
| 55 | CHAR leftdir[CCHMAXPATH + 2];
|
---|
| 56 | CHAR rightdir[CCHMAXPATH + 2];
|
---|
| 57 | BOOL forcescroll;
|
---|
| 58 | BOOL filling;
|
---|
| 59 | BOOL includesubdirs;
|
---|
| 60 | INT action;
|
---|
| 61 | UINT selleft;
|
---|
| 62 | UINT selright;
|
---|
| 63 | UINT totalleft;
|
---|
| 64 | UINT totalright;
|
---|
| 65 | CHAR rightlist[CCHMAXPATH]; // Snapshot file name
|
---|
| 66 | BOOL reset;
|
---|
| 67 | HWND hwndCalling;
|
---|
| 68 | struct COMPARE *cmp; // callers compare defintion
|
---|
| 69 | struct DIRCNRDATA dcd;
|
---|
| 70 | }
|
---|
| 71 | COMPARE;
|
---|
| 72 |
|
---|
| 73 | MRESULT EXPENTRY CFileDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
| 74 | MRESULT EXPENTRY CompareDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
|
---|
| 75 |
|
---|
| 76 | #endif // COMP_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.