invoke
GetDC,hWnd
mov
@hDc,eax
invoke
CreateCompatibleDC,@hDc
mov
hDcBack,eax
invoke
GetClientRect,hWnd,addr @stRect
mov
eax,@stRect.right
mov
ecx,@stRect.left
sub
eax,ecx
mov
@dwWidw,eax
mov
ecx,@stRect.bottom
mov
eax,@stRect.top
sub
ecx,eax
mov
@dwHight,ecx
invoke
CreatePatternBrush,hBmp5
push
eax
invoke
SelectObject,hDcBack,eax
invoke
PatBlt,hDcBack,0,0,@dwWidw,@dwHight,PATCOPY
pop
eax
invoke
DeleteObject,eax
invoke
ReleaseDC,hWnd,@hDc
invoke
InvalidateRect,hWnd,NULL,FALSE
.elseif
eax==WM_PAINT
invoke
BeginPaint,hWnd,addr @stPs
mov
@hDc,eax
mov
eax,@stPs.rcPaint.right
sub
eax,@stPs.rcPaint.left
mov
ecx,@stPs.rcPaint.bottom
sub
ecx,@stPs.rcPaint.top
invoke
BitBlt,@hDc,@stPs.rcPaint.left,@stPs.rcPaint.top,\
eax,ecx,hDcBack,@stPs.rcPaint.left,@stPs.rcPaint.top\
,SRCCOPY
invoke
EndPaint,hWnd,addr @stPs
试了下还是不行,帮看下代码是不是有问题?跟踪了下@stPs.rcPaint结构里面全0,这是怎么搞的?