Progress Bar In Status Bar....Help Please 
Author Message
 Progress Bar In Status Bar....Help Please

Use SetParent to make the progressbar a child of the statusbar then
position it as needed. If you're displaying it within a panel you'll
probably want to get rid of the border too.

Private Sub Form_Load()
    'turn off border...
    SetWindowLong ProgressBar1.hwnd, GWL_EXSTYLE, _
        (GetWindowLong(ProgressBar1.hwnd, GWL_EXSTYLE) _
        And (Not WS_EX_STATICEDGE))
    're-parent...
    SetParent ProgressBar1.hwnd, StatusBar1.hwnd
    ProgressBar1.Move 0, 0
End Sub

Private Sub Form_Unload(Cancel As Integer)
    SetParent ProgressBar1.hwnd, Me.hwnd
End Sub



Quote:
>Hi,
>How do you add a progressbar to status bar. I want to display a progressbar
>in the status bar showing the amount of work done.

>Please Help

>Purav


-Tom
(please post replies to the newsgroup)


Sat, 27 Jul 2002 03:00:00 GMT  
 Progress Bar In Status Bar....Help Please
Hi,
How do you add a progressbar to status bar. I want to display a progressbar
in the status bar showing the amount of work done.

Please Help

Purav



Sun, 28 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help needed with Progress Bars and Status Bars

2. HElp with progress bar on MDI status bar

3. HElp with progress bar on MDI status bar

4. Status Bar/Progress Bar

5. Progress bar in status bar for .NET

6. Progress Bar in Status Bar

7. Progress bar on a status bar

8. Progress bar in a status bar

9. Progress bar in a Status bar panel?

10. Progress bar in a status bar

11. Resizing a Progress Bar in the Status Bar

12. Progress Bar in Status Bar

 

 
Powered by phpBB® Forum Software