home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2002 July
/
VPR0207A.ISO
/
OLS
/
UNRAR32007
/
unrar32007.lzh
/
src.lzh
/
src
/
dialog.h
< prev
next >
Wrap
C/C++ Source or Header
|
2001-01-11
|
1KB
|
52 lines
/*
* Copyright (c) 1998-2001 T. Kamei (kamei@jsdlab.co.jp)
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for any purpose is hereby granted provided
* that the above copyright notice and this permission notice appear
* in all copies of the software and related documentation.
*
* NO WARRANTY
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY WARRANTIES;
* WITHOUT EVEN THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE.
*/
#ifndef _dialog_h_
# define _dialog_h_
# include "resource.h"
struct replace_param
{
const char *old_name;
DWORD old_date;
long old_size;
const char *new_name;
DWORD new_date;
long new_size;
};
int replace_dialog (HWND, const replace_param &);
class progress_dlg
{
enum {PROGRESS_MAX = 100};
public:
HWND hwnd;
int max_bytes;
progress_dlg () : hwnd (0), max_bytes (0) {}
~progress_dlg () {if (hwnd) DestroyWindow (hwnd);}
int create (HWND);
int init (const char *, int);
int update (int) const;
friend BOOL CALLBACK progress_dlgproc (HWND, UINT, WPARAM, LPARAM);
BOOL wndproc (UINT, WPARAM, LPARAM);
};
char *askpass_dialog (HWND);
int change_vol_dialog (HWND, char *);
#endif