Hook events in Compact framework to monitor screen change events

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

Guest

I want to install a hook procedure so I can monitor screen changes in an
application and button presses (not key presses) - how do you do this in
compact framework ?
 
On an app basis, or on a device-wide basis? For your app an IMessageFilter
may do what you need. For the device you're out of luck - CE has no hook
support.

-Chris
 
I want to do it for each app running on the device but I could do this by
injecting a DLL into each app.
 
Hi Chris,
some time ago I was trying to intercept the WM_RESIZE message, when the
CE.NET 4.2 scrteen is rotated (90° left, 90° right or 180°). However
that message was not rised by the system, neither form_resize() was
rised by the .NET CF to my application. Also a C++ spy application has
confirmed that the WM_RESIZE event is not rised by the system. So, I
was not able to get a way to understand when screen is rotated and
resize my application to the new screen size.

Have you any suggest?

Thanks,
Massimo

Chris Tacke, MVP ha scritto:
 
What having a small dummy element with anchors and the capturing an
resize event or heigt / width assign ?

Would this work ?
 
Back
Top