📄 drawproc.asm
字号:
.data
fullrect RECT <0,0,400,300>
.code
DrawProc proc uses ebx esi
invoke GetStockObject, WHITE_BRUSH
invoke FillRect, hBackDC, ADDR fullrect, eax
; Thru a while loop start at the first object and first each to a new position
; via the move method, and then have them re-drawn on the dc.
xor ebx, ebx
.WHILE ebx < MAX_SMILIES
; Get the object handle
mov esi, dword ptr [offset SmileyArray + 4 * ebx]
; Move this object to a new position
method esi, CSprite, move
; Redraw the sprite
method esi, CSprite, draw
; Next object..
inc ebx
.ENDW
ret
DrawProc endp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -