- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wish to add a progress bar to a program. The program gets information from edit controls and performs a lengthly calculation using arrays. This occurs when the calculate button is pressed which is linked to a select case(id) command in a subroutine triggering the calculation. Ive set the min and max range and start values of the progress bar in the main program but do not know how get the progress bar to start and update with respect to the calculation.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See ThreadDlg sample on my home page. It does not use progress bar, but it explains (a) principle of spawning lengthy calculations. It would be simple to add a call to SendMessage(hProgress,PBM_STEPIT,0,0) or DlgSet(Dlg,IDC_PROGRESS,n,DLG_POSITION) from the worker routine. (Of course, you will have to pass/share either hProgress or Dlg variable between the routines).
Jugoslav
Jugoslav
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page