![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Использование ProgressBar [D7, XP]
nord489 © (2007-06-22 17:00:00)Здравствуйте.
Подскажите как сделать чтобы ProgressBar отображал состояния копирования файла.
homm (2007-06-22 22:41:00) [1]> Подскажите как сделать чтобы ProgressBar отображал состояния
> копирования файла.
У него есть волшебное свойство Position.
Desdechado (2007-06-22 17:03:00) [2]
BOOL CopyFileEx(
LPCWSTR lpExistingFileName, // pointer to name of an existing file
LPCWSTR lpNewFileName, // pointer to filename to copy to
LPPROGRESS_ROUTINE lpProgressRoutine, // pointer to the callback function
LPVOID lpData, // to be passed to the callback function
LPBOOL pbCancel, // flag that can be used to cancel the operation
DWORD dwCopyFlags // flags that specify how the file is copied
);
lpProgressRoutine
Specifies the address of a callback function of type LPPROGRESS_ROUTINE that is called each time another portion of the file has been copied. This parameter can be NULL. For more information on the progress callback function, see CopyProgressRoutine.