2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: ScanUtility.h,v 1.7 2003/08/22 06:30:14 douglas Exp $ |
5 |
> |
// $Id: ScanUtility.h,v 1.10 2003/08/26 06:41:12 douglas Exp $ |
6 |
|
|
7 |
|
#ifndef _ScanUtility_h_ |
8 |
|
#define _ScanUtility_h_ |
9 |
|
|
10 |
< |
#include "IndividualClient.h" |
10 |
> |
#include "DiscBrowse.h" |
11 |
|
|
12 |
< |
class ScanUtility |
12 |
> |
class ScanUtility : public DiscBrowse |
13 |
|
{ |
14 |
|
private: |
15 |
|
PROPSHEETPAGE wizard[5]; |
16 |
– |
char* title; |
16 |
|
IndividualClient client; |
17 |
|
string scan; |
18 |
|
string save; |
19 |
|
string scanDir; |
20 |
|
string saveDir; |
22 |
– |
HMENU menu; |
23 |
– |
HMENU popup; |
24 |
– |
unsigned number; |
25 |
– |
static unsigned count; |
21 |
|
static map<unsigned, ScanUtility*> utilities; |
22 |
|
static map<HWND, ScanUtility*> windows; |
23 |
|
void loadDirs(void); |
25 |
|
void setScanDir(HWND parent = NULL); |
26 |
|
void setSaveDir(HWND parent = NULL); |
27 |
|
void populate(HWND parent); |
28 |
+ |
static ScanUtility* which(HWND window); |
29 |
+ |
static ScanUtility* which(HWND window, LPARAM l); |
30 |
|
static int CALLBACK browse(HWND dialog, UINT msg, LPARAM l, LPARAM d); |
31 |
|
static INT_PTR CALLBACK start(HWND dialog, UINT msg, WPARAM w, LPARAM l); |
32 |
|
static INT_PTR CALLBACK select(HWND dialog, UINT msg, WPARAM w, LPARAM l); |
33 |
|
static INT_PTR CALLBACK enter(HWND dialog, UINT msg, WPARAM w, LPARAM l); |
34 |
+ |
static INT_PTR CALLBACK confirm(HWND dialog, UINT msg, WPARAM w, LPARAM l); |
35 |
+ |
static INT_PTR CALLBACK done(HWND dialog, UINT msg, WPARAM w, LPARAM l); |
36 |
|
public: |
37 |
|
ScanUtility(); |
38 |
|
~ScanUtility(); |