Who is pumping my messages?

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

Guest

Hello all!

I am using Openet CF ApplicationEx's message pump to preview some keys and
act accordingly.

I register my forms as message filters and everything works fine for
non-modal forms. However, when I show a form using the ShowDialog method,
ApplicationEx's message pump stops receiving any messages at all.

I am suspecting that CF modal forms create their own message pump that
consumes all the UI thread's messages. Is that the case? Is there anything I
can do to bypass this behaviour?
 
You are correct. The modal dialogs use their own message pumps.
Unfortunately it means that AppicationEx message filter cannot be inserted
in their message handler chains. You can try experimenting with your own
implementation of a modal dialog, or use modeless ones
 
You're correct that modal Forms get their own pump. I experimented with a
ShowModal implementation for OpenNETCF but didn't get working it to my
satisfaction, then moved on to another project.
 
Thanks guys.

I will give it a shot myself and post back if I come up with anything
(probably nothing since you haven't come up with anything, but
I have to try :-) ).
 
Back
Top