c# - Clean messages in Windows Message Pump -
i don't know windows message pump guess events triggered using message pump.
1) when web browser control navigates websites ,it creates different events of document completion, once have got needed in webbrowser_document_completed(),i want ignore further document completion.how can it?
2) if show messagebox() in document_completed(...), shows multiple message box,shows runs on parallel threads.but when debug ,i find run on main thread.so when other 2 threads created?
3) @ same time ,when press close ,it closes window process still running in background, not using other thread still see 2 other threads when debug. lot.
the direct way intercept , evaluate messages being propagated control overriding it's wndproc() method. little bit of debugger observation can identify wm_message constant corresponds target event , alter execution flow accordingly. there pretty example of on msdn site: https://msdn.microsoft.com/en-us/library/system.windows.forms.control.wndproc%28v=vs.110%29.aspx?f=255&mspperror=-2147217396
to idea of message(s) seeing/looking for, reference: http://www.pinvoke.net/default.aspx/constants/wm.html
Comments
Post a Comment