📄 drawproc.asm
字号:
.data
fullrect RECT <0,0,400,300>
.code
DrawProc proc uses ebx esi
; No longer erase the background each time drawn (to preserve the "footprints")
; invoke GetStockObject, WHITE_BRUSH
;invoke FillRect, hBackDC, ADDR fullrect, eax
invoke BitBlt, hBackDC, 0,0,400,300, hStepDC, 0,0,SRCCOPY
xor ebx, ebx
.WHILE ebx < MAX_SMILIES
mov esi, dword ptr [offset SmileyArray + 4 * ebx]
method esi, CSmiley, move ; Now CSmiley objects to be worked with..
method esi, CSmiley, draw
inc ebx
.ENDW
ret
DrawProc endp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -