读书人

WIN32汇编有关问题~初学者求教

发布时间: 2012-05-02 15:36:04 作者: rapoo

WIN32汇编问题~~菜鸟求教
窗口过程
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
_ProcDlgMainprocuses ebx edi esi,hWnd,uMsg,wParam,lParam

moveax,uMsg
;********************************************************************
.ifeax ==WM_TIMER
moveax,wParam
.ifeax ==ID_TIMER1
incdwCount
moveax,dwCount
andeax,1
inceax
invokeLoadIcon,hInstance,eax
invokeSendDlgItemMessage,hWnd,IDC_SETICON,STM_SETIMAGE,IMAGE_ICON,eax
.elseifeax ==ID_TIMER2
invokeMessageBeep,-1
.endif
;********************************************************************
.elseifeax ==WM_INITDIALOG
pushhWnd
pophWinMain
invokeSetTimer,hWnd,ID_TIMER1,250,NULL
invokeSetTimer,hWnd,ID_TIMER2,2000,NULL
invokeSetTimer,NULL,NULL,1000,addr _ProcTimer
movidTimer,eax
;********************************************************************
.elseifeax ==WM_CLOSE
invokeKillTimer,hWnd,ID_TIMER1
invokeKillTimer,hWnd,ID_TIMER2
invokeKillTimer,NULL,idTimer
invokeEndDialog,hWnd,NULL

这是那个win32写的计时器。最近才看的。问下高手mov idTimer,eax 是什么意思~~尤其是那个idTimer 谢了~~是不是ID_TIMER1和ID_TIMER2??真心搞不懂了这点。其他都知道

[解决办法]
idTimer中存放SetTimer的返回值,一个计时器的标识符,KillTimer时用

读书人网 >汇编语言

热点推荐