Code behind Control.Invoke

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

Does anybody knows the code behind System.Windows.Forms.Control.Invoke

Is it using Win32 SendMessage with some WM_USER + x message

Any hints would help

I have a mixed environment (MFC, Win32 and .NET) and need to resolve some issue with windows message queue

Thank
JPRoot
 
Next question: same thing but with BeginInvoke/EndInvoke
Thank
JPRoo

----- JPRoot wrote: ----

Hi all

Does anybody knows the code behind System.Windows.Forms.Control.Invoke

Is it using Win32 SendMessage with some WM_USER + x message

Any hints would help

I have a mixed environment (MFC, Win32 and .NET) and need to resolve some issue with windows message queue

Thank
JPRoot
 
Hi JPRoot,
I would say that ControlInvoke uses SendMessage and BeginInvoke\EndInvoke
uses SendMessageCallback, but what I see is that both of them post a message

--
B\rgds
100

JPRoot said:
Hi all,

Does anybody knows the code behind System.Windows.Forms.Control.Invoke?

Is it using Win32 SendMessage with some WM_USER + x message?

Any hints would help.

I have a mixed environment (MFC, Win32 and .NET) and need to resolve some
issue with windows message queue.
 
Hi,

Could you write a small winform program and look into it using Spy++?
I guess it will show the message id and if the message is sent or posted.

If you still have problem on this issue,
please reply this thread to let me know.

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Back
Top