Someone knows who do I display the progress bar in the taskbar?
example:

I don't know how to use this code (I me newbie here): http://msdn.microsoft.com/en-us/magazine/dd942846.aspx
Posted 25 February 2012 - 02:30 AM

Heroes, there is no such thing
Posted 25 February 2012 - 03:30 AM
Posted 25 February 2012 - 02:21 PM
thanks, it has the progress bar in the taskbarIt's not the easiest thing, but do a search for ITaskBarList and you'll get some examples. ITaskBarList UDF looks useful.
Heroes, there is no such thing
Posted 25 February 2012 - 05:17 PM
Heroes, there is no such thing
Posted 25 February 2012 - 06:00 PM
Use the below function to change the color (State).works great
Its possible change the colour of a normal progress bar? (to yellow, red, in case of abort state)
; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc
Posted 25 February 2012 - 07:59 PM
yeah, worksUse the below function to change the color (State).
; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc
HWND hWnd = m_Progress.GetSafeHwnd(); ::SetWindowTheme(hWnd, NULL, NULL); m_Progress.StepIt();
Edited by DiOgO, 25 February 2012 - 08:17 PM.
Heroes, there is no such thing
Posted 26 February 2012 - 12:04 AM
Try adding $PBS_SMOOTH to the function like below:yeah, works
but looses the $PBS_SMOOTH
EDIT: this can be implemented with dllcall?:
HWND hWnd = m_Progress.GetSafeHwnd(); ::SetWindowTheme(hWnd, NULL, NULL); m_Progress.StepIt();
; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16 + $PBS_SMOOTH,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc
Posted 26 February 2012 - 12:39 AM
continues without the smooth styleTry adding $PBS_SMOOTH to the function like below:
; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16 + $PBS_SMOOTH,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc
Heroes, there is no such thing
Posted 28 February 2012 - 01:48 PM
Posted 03 March 2012 - 02:11 AM
thanksHoi DiOgo,
I've made a small udf for this function it used AutoItObject to do the trick
http://www.nendsoftware.nl/Taskbarprogress.zip
I've made this a while ago for myself.
It has no comment lines in it but it's very easy to know how it works.
I've you have trouble to use it let me know and I will make a example code.
Heroes, there is no such thing
0 members, 0 guests, 0 anonymous users