能力值:
( LV2,RANK:10 )
|
-
-
2 楼
因为 WM_INITDIALOG 消息来的时候,窗口还不能显示出来。
可以试试
.if eax==WM_PAINT
;第1次 PAINT ,PaintFirst 定义到 .data?里
.if PaintFirst==0
mov PaintFirst,1
invoke GetDlgItem,hWin,1001
mov hpb,eax
mov eax,1969
mov CurrentStep,eax
shl eax,16
invoke SendMessage,hpb,PBM_SETRANGE,0,eax
invoke SendMessage,hpb,PBM_SETSTEP,1,0
invoke huifu
.endif
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
不过这样会影响窗口重画,最好建个 Thread
.if eax==WM_PAINT
.if PaintFirst==0
mov PaintFirst,1
invoke GetDlgItem,hWin,1001
mov hpb,eax
mov eax,1969
mov CurrentStep,eax
shl eax,16
invoke SendMessage,hpb,PBM_SETRANGE,0,eax
invoke SendMessage,hpb,PBM_SETSTEP,1,0
invoke CreateThread,0,0,addr huifu,0,0,addr ThreadID
invoke CloseHandle , eax
.endif
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
非常感谢xiaolz的回复!
这个问题困绕我很久了,先试试,若有疑问再请教你。
|
|
|