RE: Redraw Issue

new topic     » goto parent     » topic index » view thread      » older message » newer message

euman at bellsouth.net wrote:
> Here is some code I personally use for window resize.
> It's rather quick to see that InvalidateRect would 
> force a repaint of the entire Window.
> </snip>
> 
> 
>     elsif iMsg = WM_SIZE then
>      
>           inc = HIWORD(lParam)-peek4s(rect_Bottom)
>           if inc > 0 and orgY >= vyScreen-peek4s(rect_Bottom) then 
>              orgY -= inc
>           end if
> 
>           if orgY < 0 then 
>              orgY = 0
>           end if
> 
>           inc = LOWORD(lParam)-peek4s(rect_Right)
>           if inc > 0 and orgX >= vxScreen-peek4s(rect_Right) then 
>              orgX -= inc
>           end if
> 
>           if orgX < 0 then 
>              orgX = 0
>           end if
>       
>           c_proc(GetClientRect, {hwnd,rect})
> 
>           poke4(sifMask,or_bits(SIF_RANGE, SIF_POS))
>           poke4(sifMin, 0)
>           
>           poke4(sifMax,vxScreen-peek4s(rect_Right))
>           poke4(sifPos,orgX)
>           ok = c_func(xSetScrollInfo,{hwnd, SB_HORZ, si, 1})  
>                 
>           poke4(sifMax,vyScreen-peek4s(rect_Bottom))
>           poke4(sifPos,orgY)
>           ok = c_func(xSetScrollInfo,{hwnd, SB_VERT, si, 1})
>           
>           return c_func(xInvalidateRect, {hwnd, NULL, 0})
> 
> <snip/>
> 
> ck, your answer about the window being smooth in the demo I
> sent you answers my question about your hardware. There is nothing
> wrong with it.....Its must be your code or the library you are useing!
> 
> Euman
> euman at bellsouth.net

 I'am sorry but I don't understand what that has to do with the
 toolbar ?
 I don't think the toolbar is part of the client area.


Bernie

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu