accessing message pump in a custom control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Frankenstein (frank_at_yahoo.com)
Date: 04/09/04


Date: Fri, 9 Apr 2004 18:22:33 +0530

Hi,

Thanks to the ApplicationEx class from OpenNetCF, I can access the
application message pump in my form and access mouse events without worrying
on which controls the mouse click occured .

But, now I want to access the messages from a custom control. Since I cannot
call ApplicationEx.Run() in the custom control, I am unable to access the
mouse events from the message pump.

Is there a way to get around this problem?

Thanks.



Relevant Pages

  • Re: Missing events
    ... but this thread doesn't run a message pump. ... implied because of the 3rd party VB COM control I use? ... and then initialises the hardware (camera, lens ... class as the original lens object I had. ...
    (microsoft.public.vc.atl)
  • Re: Service hangs when accessing ActiveX control
    ... correctly in an STA on the main thread but you are later calling into this ... your OnStart method and then create the form and control in the ThreadStart ... Application.Runto start the message pump. ... > Not specifying any attribute or specifying it as STA results in the same ...
    (microsoft.public.dotnet.framework.interop)
  • Re: A question regarding use of the Test Container to check ActiveX controls
    ... If you manipulate a control in a loop, ... The key is to never write a loop that behaves as you described. ... if there is a repetitive operation, it is invoked by the message pump somehow. ... container my company has written that displays graphical information. ...
    (microsoft.public.vc.mfc)
  • RE: Implementing a tight render loop when using a UserControl
    ... Interception of the message pump for the IE is a bit problematic as the ... pump is common to all windows and not only to the control... ... BUT this is not an optimal solution. ... of any managed equivalent. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: WTL newbie question - please help!
    ... In a typical WTL control class its normally just a whole bunch of ... So I think of it at that level as adding to the "making real window controls ... In case B the big difference is that you introducing a message pump. ... The other thing I would suggest is that you run the WTL wizard and make a ...
    (microsoft.public.vc.atl)