/*********************************************************************** $Id: comp.h 1670 2012-08-13 01:33:25Z gyoung $ compare interface Copyright (c) 1993-98 M. Kimes Copyright (c) 2001, 2009 Steven H. Levine 05 Jan 08 SHL Split from fm3dll.h 18 Jan 08 SHL Sync with count update mods 27 Sep 09 SHL Support AND'ed selections 12 Aug 12 GKY Allow for selection of include subdirectories or a list file on initial startup of compare dirs ***********************************************************************/ #if !defined(COMP_H) #define COMP_H #if !defined(OS2_INCLUDED) #define INCL_WINSTDCNR // dircnrs.h #include #else #if !defined(INCL_WINSTDCNR) #error INCL_WINSTDCNR required #endif #endif #include "dircnrs.h" // DIRCNRDATA typedef struct { USHORT size; USHORT dummy; CHAR file1[CCHMAXPATH]; CHAR file2[CCHMAXPATH]; HWND hwndParent; HWND hwndList; HWND hwndReport; HWND hwndHelp; } FCOMPARE; typedef struct COMPARE { USHORT size; // Structure size USHORT shiftstate; // For AND'ed selections HWND hwnd; HWND hwndParent; CHAR leftdir[CCHMAXPATH + 2]; CHAR rightdir[CCHMAXPATH + 2]; BOOL forcescroll; BOOL filling; // Set when thread working BOOL stop; // Requests thread stop BOOL includesubdirs; BOOL listfile; INT action; // IDM_... UINT selleft; // # selected UINT selright; UINT totalleft; UINT totalright; UINT uOldSelLeft; UINT uOldSelRight; UINT uOldTotalLeft; UINT uOldTotalRight; CHAR rightlist[CCHMAXPATH]; // Snapshot file name HWND hwndCalling; struct COMPARE *cmp; // Points to caller's compare structure struct DIRCNRDATA dcd; } COMPARE; MRESULT EXPENTRY CFileDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); MRESULT EXPENTRY CompareDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); // Data declarations extern BOOL fSelectedAlways; #endif // COMP_H