Hi!

I have wrote a program that update it's window every second... But Windows won't view the change... Why?

I include my program...
Posted on 2002-11-12 11:33:56 by ChristopherVigren
....that 3 people have downloaded the file. Please check it and help me..
Posted on 2002-11-12 12:01:53 by ChristopherVigren
[color=sienna]

.elseif uMsg==WM_PAINT
; invoke BeginPaint, hWindow, addr pstruct ;[color=red]<- REMOVED[/color]
invoke GetDC,0 ;[color=red]<- ADDED[/color]
mov dcHandle, eax
invoke CreateCompatibleDC, dcHandle
mov mdcHandle, eax
invoke GetSystemTime, addr stime
invoke wsprintf, addr CommandBuffer, addr szFormat, stime.wSecond
invoke SetWindowText, WPwHandle, addr CommandBuffer
; invoke TextOut, dcHandle, 13, 0, addr CommandBuffer, SIZEOF CommandBuffer ;<---:....
invoke TextOut, dcHandle, 13, 0, addr CommandBuffer, length CommandBuffer+1 ;[color=red]<- CHANGED[/color]
invoke DeleteDC, mdcHandle
; invoke EndPaint, hWindow, addr pstruct ;[color=red]<- REMOVED[/color]
[/color]
Posted on 2002-11-12 12:08:41 by natas
-
Posted on 2002-11-12 12:10:12 by ChristopherVigren