wm_timer.asm

来自「本程序**%100汇编语言**编写。 编译器: <<-----MAS」· 汇编 代码 · 共 33 行

ASM
33
字号
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<,<
.if dwFlag==1
		.if TimeFlag==0
		invoke SendMessage,hWnd,WM_SETICON,ICON_SMALL,hIcon2
		mov note.cbSize,sizeof NOTIFYICONDATA
		push hWnd
		pop note.hwnd
		mov note.uID,IDI_MAIN
		mov note.uFlags,NIF_ICON OR NIF_MESSAGE\
		OR NIF_TIP
		MOV note.uCallbackMessage,WM_SHELLNOTIFY
		mov eax,hIcon2
		mov note.hIcon,eax
		invoke lstrcpy,addr note.szTip,addr AppName
		INVOKE Shell_NotifyIcon,NIM_MODIFY,ADDR note
		mov TimeFlag,1
		.else
		invoke SendMessage,hWnd,WM_SETICON,ICON_SMALL,hIcon
		mov note.cbSize,sizeof NOTIFYICONDATA
		push hWnd
		pop note.hwnd
		mov note.uID,IDI_MAIN
		mov note.uFlags,NIF_ICON OR NIF_MESSAGE\
		OR NIF_TIP
		MOV note.uCallbackMessage,WM_SHELLNOTIFY
		mov eax,hIcon
		mov note.hIcon,eax
		invoke lstrcpy,addr note.szTip,addr AppName
		INVOKE Shell_NotifyIcon,NIM_MODIFY,ADDR note
		mov TimeFlag,0
		.endif	
		.endif
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?