D
Dmitry
Hi,
can anybody tell me if there is a way to define and send a custom windows
message to a window and to specify
a handler function for it in C#?
The reason I'm asking this is following - I use some 3d party component that
start its own threads. When my
command is executed by this component it invokes my callback in the context
of its thread. But
I need to somehow update my GUI after that. I can't access my GUI controls
from this callback (get an
exception - wrong thread or something like that), so I thought that if I
could place a message into my app's
message queue then I could handle this situation properly.
Thanks in advance!
Regards,
Dmitry.
can anybody tell me if there is a way to define and send a custom windows
message to a window and to specify
a handler function for it in C#?
The reason I'm asking this is following - I use some 3d party component that
start its own threads. When my
command is executed by this component it invokes my callback in the context
of its thread. But
I need to somehow update my GUI after that. I can't access my GUI controls
from this callback (get an
exception - wrong thread or something like that), so I thought that if I
could place a message into my app's
message queue then I could handle this situation properly.
Thanks in advance!
Regards,
Dmitry.