// Vance Thrift and Biller File Utility 2 // // Douglas Thrift // // $Id: DiscBrowse.h,v 1.7 2003/09/03 22:58:37 douglas Exp $ #ifndef _DiscBrowse_h_ #define _DiscBrowse_h_ #include "IndividualClient.h" class DiscBrowse { private: struct Thing { int index; bool order; HWND list; }; PROPSHEETPAGE wizard[2]; string discDir; bool sortFile, sortNumber, sortName, sortSize; static map windows; void loadDir(void); void saveDir(void); void setDiscDir(HWND parent = NULL); void populate(HWND parent); static DiscBrowse* which(HWND window); static DiscBrowse* which(HWND window, LPARAM l); static int CALLBACK browse(HWND dialog, UINT msg, LPARAM l, LPARAM d); static int CALLBACK sort(LPARAM first, LPARAM second, LPARAM l); static INT_PTR CALLBACK start(HWND dialog, UINT msg, WPARAM w, LPARAM l); static INT_PTR CALLBACK browse(HWND dialog, UINT msg, WPARAM w, LPARAM l); protected: string title; HMENU popup; unsigned number; string tail(const string& path) { return path + (path[path.length() - 1] != '\\' ? "\\" : ""); } static unsigned count; static map browsers; public: DiscBrowse(); virtual ~DiscBrowse(); virtual void run(void); }; #endif // _DiscBrowse_h_