News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

embedded listview progressbar

Started by ragdog, March 07, 2008, 05:43:07 AM

Previous topic - Next topic

ragdog

hi

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

thanks
ragdog

ragdog

#1
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



ragdog

#2
hi

it works :wink





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

have your an idea?



ragdog

ragdog

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

ragdog

#4
hello

no reply´s

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

evlncrn8

can you attach the code?, looks interesting :)

ragdog

hi

the code works

i have disable resize the colume header

greets
ragdog

[attachment deleted by admin]

ToutEnMasm

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]

ragdog

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]