http://bugs.winehq.org/show_bug.cgi?id=10522
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2008-07-22 06:08:55 --- (In reply to comment #3)
0009:trace:win:GetDCEx (0x10114,0xbb18,0x10080): returning 0x30c
0009:trace:win:BeginPaint hdc = 0x30c box = ((0,0)-(204,59)), fErase = 0 0009:trace:win:WIN_SetWindowLong 0x100d6 0 0 W 0009:trace:win:WIN_SetWindowLong 0x100d6 0 0 W 0009:trace:win:GetDCEx hwnd 0x10114, hrgnClip (nil), flags 00000003 0009:trace:win:GetDCEx found valid 0x12f978 dce [0x10114], flags 00000003 0009:trace:win:GetDCEx (0x10114,(nil),0x3): returning 0x384 0009:trace:win:release_dc 0x10114 0x384 0009:trace:win:RedrawWindow 0x10114 rect (0,0)-(204,66) flags: RDW_INVALIDATE RDW_ERASE
Looks like the window is invalidated again after being painted, so it's normal that it would loop forever. You should try to find out where that RedrawWindow call comes from.