能力值:
( LV5,RANK:60 )
2 楼
自己感觉好象已经被抛弃的东西.
能力值:
( LV3,RANK:30 )
3 楼
把死循环换成长时间 sleep也是如此,也许是被系统接管了。
能力值:
( LV3,RANK:30 )
4 楼
通过MessageBox试验,发现MessageBox还没返回之前,窗口过程又继续被调用了,,,好像貌似单线程的程序,还可以多线程运行
能力值:
( LV3,RANK:30 )
5 楼
这段代码会出现两个MessageBox
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szCaption db 'yes',0
hInstance dd ?
dwCount dd ?
.code
ProcDlg proc hWnd,wMsg,wParam,lParam
LOCAL @nm:NMHDR
cmp dwCount,1
jnz ProcNext
inc dwCount
invoke MessageBox,NULL,offset szCaption,offset szCaption,MB_OK
ProcNext:
mov eax,wMsg
.if eax==WM_CLOSE
invoke EndDialog,hWnd,NULL
.elseif eax==WM_COMMAND
mov eax,wParam
.if ax==1
LOP:
inc dwCount
invoke MessageBox,hWnd,offset szCaption,offset szCaption,MB_OK
inc dwCount
.endif
.else
mov eax,FALSE
ret
.endif
mov eax,TRUE
ret
ProcDlg endp
start:
invoke GetModuleHandle,NULL
mov hInstance,eax
mov dwCount,0
invoke DialogBoxParam,eax,101,NULL,offset ProcDlg,NULL
invoke ExitProcess,NULL
end start
能力值:
( LV3,RANK:30 )
6 楼
MessageBox 问题已经解决,其实是递归调用了窗口过程,死循环过程还没解决,,
能力值:
( LV7,RANK:100 )
7 楼
MessageBox也是一个窗口,但它的窗口过程并不是我们程序设定的那个,可以用spy++查得
能力值:
( LV2,RANK:10 )
8 楼
定层窗口!!
能力值:
( LV2,RANK:10 )
9 楼
The Windows XP Ghost Window feature creates ghost windows on behalf of a program when the program does not respond correctly to window messages within several seconds and is considered to be hung. This feature may not correctly restore the properties of a minimized window, and may create a second minimized title bar window beside the original window but not overwrite it.
能力值:
( LV2,RANK:10 )
10 楼
See PeekMessage Function description in MSDN