请问:怎样处理消息,可以使窗口失去焦点时暂停并等待获得焦点。
请问:怎样处理消息,可以使窗口失去焦点时暂停并等待获得焦点。@NewMessage:
invoke PeekMessage,addr msg,NULL,0,0,PM_REMOVE
or EAX,EAX
jz ks@z
invoke TranslateMessage,addr msg
invoke DispatchMessage,addr msg
jmp @NewMessage
ks@z:
call hs+hsjg.cj
call hs+hsjg.jianpan
call hs+hsjg.sb
call hs+hsjg.sjb
jmp @NewMessage
WndProc PROC uses ESI EDI EBX hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM
invoke DefWindowProc, hWnd, uMsg, wParam, lParam
ret
WndProc ENDP