
Originally Posted by
trjack52
Code:
HRESULT hr;
LPBINDSTATUSCALLBACK lpfnCB;
Well im stuck on this one
help me now i got a progress bar and im using an update option in my program
These varibles are on the top:
Lcc-win32/Visual Basic Code:
HRESULT hr;
LPBINDSTATUSCALLBACK lpfnCB;
im not sure if its correct
ModifyProgressBar(PROGRESSHANDLE,TEXTTODRAWINBAR,DISPLAY %,DISPLAY CUSTOM TEXT); is from my dll differnt style to the progress bar mind
still uses the same class just sends a pain message;
and:
Lcc-win32 Code:
hr = URLDownloadToFile(0,urlname,"UPDATER.INI",1,0);
if(hr==S_OK){
ModifyProgressBar(hPB,"File status ",1,1);
SendMessage(hPB, PBM_SETPOS, (WPARAM) 100, 0) ;
}else{
ModifyProgressBar(hPB,"File status ",1,1);
SendMessage(hPB, PBM_SETPOS, (WPARAM) 0, 0) ;
}
^ ok it works but i can do more
Ok insted of it going to 100% and thats it no ACTUWAL percent i need an actuwall download here
Lcc-win32 Code:
ModifyProgressBar(hPB,"File status ",1,1);
SendMessage(hPB, PBM_SETPOS, [FONT="Arial Black"][COLOR="Red"](WPARAM) 100[/COLOR][/FONT], 0) ;