首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 汇编语言 >

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

2012-05-02 
WIN32汇编问题~~菜鸟求教窗口过程

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时用

热点排行