1 |
|
---|
2 | /***********************************************************************
|
---|
3 |
|
---|
4 | $Id: comp.h 1469 2009-09-28 16:21:02Z stevenhl $
|
---|
5 |
|
---|
6 | compare interface
|
---|
7 |
|
---|
8 | Copyright (c) 1993-98 M. Kimes
|
---|
9 | Copyright (c) 2001, 2009 Steven H. Levine
|
---|
10 |
|
---|
11 | 05 Jan 08 SHL Split from fm3dll.h
|
---|
12 | 18 Jan 08 SHL Sync with count update mods
|
---|
13 | 27 Sep 09 SHL Support AND'ed selections
|
---|
14 |
|
---|
15 | ***********************************************************************/
|
---|
16 |
|
---|
17 | #if !defined(COMP_H)
|
---|
18 |
|
---|
19 | #define COMP_H
|
---|
20 |
|
---|
21 | #if !defined(OS2_INCLUDED)
|
---|
22 | #define INCL_WINSTDCNR // dircnrs.h
|
---|
23 | #include <os2.h>
|
---|
24 | #else
|
---|
25 | #if !defined(INCL_WINSTDCNR)
|
---|
26 | #error INCL_WINSTDCNR required
|
---|
27 | #endif
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | #include "dircnrs.h" // DIRCNRDATA
|
---|
31 |
|
---|
32 | typedef struct
|
---|
33 | {
|
---|
34 | USHORT size;
|
---|
35 | USHORT dummy;
|
---|
36 | CHAR file1[CCHMAXPATH];
|
---|
37 | CHAR file2[CCHMAXPATH];
|
---|
38 | HWND hwndParent;
|
---|
39 | HWND hwndList;
|
---|
40 | HWND hwndReport;
|
---|
41 | HWND hwndHelp;
|
---|
42 | }
|
---|
43 | FCOMPARE;
|
---|
44 |
|
---|
45 | typedef struct COMPARE
|
---|
46 | {
|
---|
47 | USHORT size; // Structure size
|
---|
48 | USHORT shiftstate; // For AND'ed selections
|
---|
49 | HWND hwnd;
|
---|
50 | HWND hwndParent;
|
---|
51 | CHAR leftdir[CCHMAXPATH + 2];
|
---|
52 | CHAR rightdir[CCHMAXPATH + 2];
|
---|
53 | BOOL forcescroll;
|
---|
54 | BOOL filling; // Set when thread working
|
---|
55 | BOOL stop; // Requests thread stop
|
---|
56 | BOOL includesubdirs;
|
---|
57 | INT action; // IDM_...
|
---|
58 | UINT selleft; // # selected
|
---|
59 | UINT selright;
|
---|
60 | UINT totalleft;
|
---|
61 | UINT totalright;
|
---|
62 | UINT uOldSelLeft;
|
---|
63 | UINT uOldSelRight;
|
---|
64 | UINT uOldTotalLeft;
|
---|
65 | UINT uOldTotalRight;
|
---|
66 | CHAR rightlist[CCHMAXPATH]; // Snapshot file name
|
---|
67 | HWND hwndCalling;
|
---|
68 | struct COMPARE *cmp; // Points to caller's compare structure
|
---|
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 | // Data declarations
|
---|
77 | extern BOOL fSelectedAlways;
|
---|
78 |
|
---|
79 | #endif // COMP_H
|
---|