|
|
|
IProgressDialog Interface |
|
CLSID_ProgressDialog |
{F8383852-FCD3-11d1-A6B9-006097DF5BD4} |
|
IID_IProgressDialog |
{EBBC7C04-315E-11d2-B62F-006097DF5BD4} |
|
The IProgressDialog interface is exported by the progress dialog box object (CLSID_ProgressDialog). This object is a generic way to show a user how an operation is progressing. It is typically used when deleting, uploading, copying, moving, or downloading large numbers of files.
The progress dialog box object creates a modeless dialog box and allows the client to set its title, animation, text lines, and progress bar. The object then handles updating on a background thread and allows the user to cancel the operation. Optionally, it estimates the time remaining until the operation is complete and displays the information as a line of text.
Applications normally do not implement this interface. It is exported by the progress dialog box object for use by applications.
Use this interface when your application needs to display a progress dialog box. To initialize the object:
To display the progress of the operation:
When the operation is complete:
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IProgressDialog Methods |
Description |
|
StartProgressDialog |
Starts the progress dialog box. |
|
StopProgressDialog |
Stops the progress dialog box and removes it from the screen. |
|
SetTitle |
Sets the title of the progress dialog box. |
|
SetAnimation |
Specifies an AVI clip that will run in the dialog box. |
|
HasUserCancelled |
Checks whether the user has canceled the operation. |
|
SetProgress |
Updates the progress dialog box with the current state of the operation. |
|
SetProgress64 |
Updates the progress dialog box with the current state of the operation. |
|
SetLine |
Displays a message. |
|
SetCancelMsg |
Sets a message to be displayed if the user cancels the operation. |
|
Timer |
Resets the progress dialog box timer to zero. |
|
Wrapper to create an instance of the Progress Dialog |
|
FUNCTION IProgressDialog_CreateInstance ( _ BYREF ppd AS DWORD _
) AS LONG
|
|
StartProgressDialog |
|
FUNCTION IProgressDialog_StartProgressDialog ( _ BYVAL pthis AS DWORD PTR _ , BYVAL hwndParent AS DWORD _ , BYVAL punkEnableModless AS DWORD _ , BYVAL dwFlags AS DWORD _ , OPTIONAL BYVAL pvResevered AS DWORD _
)
AS LONG
|
|
StopProgressDialog |
|
FUNCTION IProgressDialog_StopProgressDialog ( _ BYVAL pthis AS DWORD PTR _
) AS
LONG
|
|
SetTitle |
|
FUNCTION IProgressDialog_SetTitle ( _ BYVAL pthis AS DWORD PTR _ , BYVAL strTitle AS STRING _
) AS
LONG
|
|
SetAnimation |
|
FUNCTION IProgressDialog_SetAnimation ( _ BYVAL pthis AS DWORD PTR _ , BYVAL hInstAnimation AS DWORD _ , BYVAL idAnimation AS DWORD _
)
AS LONG
|
|
HasUserCancelled |
|
FUNCTION IProgressDialog_HasUserCancelled ( _ BYVAL pthis AS DWORD PTR _
) AS
LONG
|
|
SetProgress |
|
FUNCTION IProgressDialog_SetProgress ( _ BYVAL pthis AS DWORD PTR _ , BYVAL dwCompleted AS DWORD _ , BYVAL dwTotal AS DWORD _
)
AS LONG
|
|
SetProgress64 |
|
FUNCTION IProgressDialog_SetProgress64 ( _ BYVAL pthis AS DWORD PTR _ , BYVAL ullCompleted AS QUAD _ , BYVAL ullTotal AS QUAD _
)
AS LONG
|
|
SetLine |
|
FUNCTION IProgressDialog_SetLine ( _ BYVAL pthis AS DWORD PTR _ , BYVAL dwLineNum AS DWORD _ , BYVAL strText AS STRING _ , BYVAL fCompactPath AS LONG _ , OPTIONAL BYVAL pvReserved AS DWORD _
) AS
LONG
|
|
SetCancelMsg |
|
FUNCTION IProgressDialog_SetCancelMsg ( _ BYVAL pthis AS DWORD PTR _ , BYVAL strCancelMsg AS STRING _ , OPTIONAL BYVAL pvReserved AS DWORD _
)
AS LONG
CALL DWORD
@@pthis[11] USING IProgressDialog_SetCancelMsg (pthis, strCancelMsg,
pvReserved) TO HRESULT
|
|
Timer |
|
FUNCTION IProgressDialog_Timer ( _ BYVAL pthis AS DWORD PTR _ , BYVAL dwTimerAction AS DWORD _ , OPTIONAL BYVAL pvReserved AS DWORD _
)
AS LONG
|
Page last updated on Monday, 20 March 2006 03:04:58 +0100