Re: Progress Bar
From: Charles Schweizer [MSFT] (cschweiz_at_online.microsoft.com)
Date: 10/11/04
- Next message: r_z_aret_at_pen_fact.com: "Re: FTP via ActiveSync does not work"
- Previous message: Sam: "List all files with specific extension in all directories"
- In reply to: Arvind: "Re: Progress Bar"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 12:20:21 -0700
You need to write a wrapper around the CProgressCtrl member variable. Your
wrapper class needs to implement the IBindStatusCallback interface. When
you want to download a file, pass a pointer to your wrapper class to
URLDownloadToFile and it will periodically call OnProgress. Your
implementation of OnProgress should call SetPos on your CProgressCtrl.
-- This posting is provided "AS IS" with no warranties, and confers no rights. Charles Schweizer [MSFT] cschweiz@online.microsoft.com Remove "online" if you're not an e-mail harvester... ----------------------------- "Arvind" <arvinds@erivasystems.com> wrote in message news:e8eFQ%234rEHA.3252@TK2MSFTNGP14.phx.gbl... > im sorry for my last question..its wasnt the one i intended. > > i have a eVC++ app which has progressbar..when i click a button it gets > called and works fine.. > > i want to implement in the UrlDownloadToFile( ); > > as it has a provision to callback the status when the files are > downloading. > > how to send message to progressbar when the files are downloaded and > update > it? > > Sorry again for my previous question > > > -- > Thanks, > > Arvind > > -- > "eRiva Systems" - Where Technology Meets Life, Every Minute. > > arvindr@erivasystems.com > > www.erivasystems.com > > "Andrey Yatsyk" <andrew_NO_SPAM_@softspb.com> wrote in message > news:#cwiim4rEHA.192@tk2msftngp13.phx.gbl... >> 1. Place progress control on your dialog template in eVC resource editor. >> 2. Bind this control with CProgressCtrl member variable. >> 3. Set desired range for control though SetRange in WM_INITDIALOG >> handler. >> 4. Call SetPos when you need to update a control. >> -- >> Andrey Yatsyk [Windows Embedded MVP] >> >> "Arvind" <arvinds@erivasystems.com> wrote in message >> news:eNuGr33rEHA.3896@TK2MSFTNGP15.phx.gbl... >> > Hello, >> > >> > How to include progress bar in a MFC app.. >> > >> > using callback?? >> > >> > any sample code? >> > >> > -- >> > "eRiva Systems" - Where Technology Meets Life, Every Minute. >> > >> > arvindr@erivasystems.com >> > >> > www.erivasystems.com >> > >> > >> >> > >
- Next message: r_z_aret_at_pen_fact.com: "Re: FTP via ActiveSync does not work"
- Previous message: Sam: "List all files with specific extension in all directories"
- In reply to: Arvind: "Re: Progress Bar"
- Messages sorted by: [ date ] [ thread ]