;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Include 数据
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
.data
template db '%lX',0
posBuffer db 10 dup (0)
D db ",",0
.data?
hInstance dd ?
szBuffer db 256 dup (?)
phwnd dd ?
X db 10 dup(?)
Y db 10 dup(?)
.code
EnableAll proc hWnd:HWND,lParam:LPARAM
invoke IsWindowEnabled,hWnd
cmp eax,TRUE
je getNext
invoke EnableWindow,hWnd,TRUE
getNext:
mov eax,TRUE
ret
EnableAll endp
;********************************************************************
_ProcDlgMain proc uses ebx edi esi, \
hWnd:DWORD,wMsg:DWORD,wParam:DWORD,lParam:DWORD
local @stPoint:POINT
local @hWindow:dword
local @STYLE
local wc:WNDCLASSEX
mov eax,wMsg
cmp eax,WM_TIMER
je getPoint
cmp eax,WM_INITDIALOG
je boxStart
cmp eax,WM_CLOSE
je boxClose
retFalse:
mov eax,FALSE
ret
d 以十进制形式输出带符号整数(正数不输出符号)
o 以八进制形式输出无符号整数(不输出前缀O)
x 以十六进制形式输出无符号整数(不输出前缀OX)
u 以十进制形式输出无符号整数
f 以小数形式输出单、双精度实数
e 以指数形式输出单、双精度实数
g 以%f%e中较短的输出宽度输出单、双精度实数
c 输出单个字符
s 输出字符串