The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on March 07, 2008, 05:43:07 AM

Title: embedded listview progressbar
Post by: ragdog on March 07, 2008, 05:43:07 AM
hi

i search an example with embedded progressbar in listview
can your help me?

thanks
ragdog
Title: Re: embedded listview progressbar
Post by: ragdog on March 08, 2008, 06:15:58 AM
hi

   
I have come solved!

Now, I have a problem the progressbar not properly displayed.

I have a question how can I control every single progressbar?

greets

ragdog


Title: Re: embedded listview progressbar
Post by: ragdog on March 08, 2008, 06:53:57 PM
hi

it works :wink


(http://img245.imageshack.us/img245/3433/progressbarwx8.jpg) (http://imageshack.us)


   
i dont know how it works with resizetable COLUMN header
that the progressbars become fit to the new size

have your an idea?



ragdog
Title: Re: embedded listview progressbar
Post by: ragdog on March 10, 2008, 05:23:28 AM
hi

can your help me with resizetable listview

HDN_BEGINTRACKA or HDN_BEGINTRACKW then you
know that the column is beeing
resized by the user


.elseif   uMsg == WM_NOTIFY

        mov     edi, lParam
        mov     eax, [edi.NMHDR].hwndFrom

                .if eax == [hList]

                        .if [edi.NMHDR].code == HDN_ENDTRACKA || HDN_ENDTRACKW
             
                        call MoveProgress
                        .endif
                .endif 

MoveProgress proc
LOCAL rc   :RECT
pushad

mov ebx,0

mov rc.top,2
    mov rc.left,LVIR_BOUNDS
    lea ecx,[ebx]
 
invoke SendMessage,hList,LVM_GETSUBITEMRECT,ecx,addr rc
      mov eax, rc.right
      mov edx, rc.bottom
      sub eax, rc.left
      sub edx, rc.top
   invoke GetDlgItem,hList,1
   invoke MoveWindow,eax,rc.right,rc.top   ,rc.right,12,TRUE
   
INVOKE UpdateWindow, hList
popad
ret
MoveProgress endp



ragdog
Title: Re: embedded listview progressbar
Post by: ragdog on March 11, 2008, 05:49:28 PM
hello

no reply´s(http://www.smilies-and-more.de/pics/kolobok/remake/shok.gif)

i ve got it to that point .. but can someone help me, i stock on it now!
i have searched for examples on inet, but cant find them.

if i move/push the first or second COLUMN it will destroy the progressbar...
i stock on that funktion.

plz, answer if u know that behavior or u have an idea how to fix that...


thanks in forward

best greets
ragdog
Title: Re: embedded listview progressbar
Post by: evlncrn8 on March 19, 2008, 06:34:56 AM
can you attach the code?, looks interesting :)
Title: Re: embedded listview progressbar
Post by: ragdog on March 19, 2008, 04:43:23 PM
hi

the code works

i have disable resize the colume header

greets
ragdog

[attachment deleted by admin]
Title: Re: embedded listview progressbar
Post by: ToutEnMasm on March 19, 2008, 06:29:36 PM
Hello,
I have solved the problem.
The progress controls are broken because of the bad styles.
Here are the corrects styles
You have now to resize the progress controls at the same time that the columns.

[attachment deleted by admin]
Title: Re: embedded listview progressbar
Post by: ragdog on March 19, 2008, 07:52:53 PM
hi ToutEnMasm

no that was already correctly like that because if I the size changes the 3 column is itself also the size progressvar at the 3 column to resize. i have it the disable it resize the column

or have you an idea to if resize the 3. column then  size progressbar to 3. column

thanks in forward

sorry  for my bad description

here is a example with resize the column header with resize the progressbar

[attachment deleted by admin]