Code behind Control.Invoke

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
 
G

Guest

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
 
S

Stoitcho Goutsev \(100\) [C# MVP]

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.
 
Y

Ying-Shen Yu[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top