source: trunk/dll/comp.h@ 1469

Last change on this file since 1469 was 1469, checked in by Steven Levine, 16 years ago

Enhance compare directories - support AND'ed selections, rework CompSelect for size and speed,
allow fast cancel, drop unused reset logic, more context menu items

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
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
32typedef 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}
43FCOMPARE;
44
45typedef 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}
71COMPARE;
72
73MRESULT EXPENTRY CFileDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
74MRESULT EXPENTRY CompareDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
75
76// Data declarations
77extern BOOL fSelectedAlways;
78
79#endif // COMP_H
Note: See TracBrowser for help on using the repository browser.