canceling windows messages

  • Thread starter Thread starter manuel
  • Start date Start date
M

manuel

Hi there

i'm trying that an embedded control (flash player) does no answer to
the specific message right mouse click. Is there any idea in how to do
it or do you guys have a very nice suggestion for a link? I think that
I have to intercept the windows message somewhere... I'm lost,
though!

thankx

manuel
 
Hi,

you can override the WndProc procedure and catch the Mouse event you
want :

protected override void WndProc(ref Message msg)
{
switch(msg.Msg)
{
case WM_MOUSEXXX:
break;

}


// call the base class WndProc for default message handling
base.WndProc(ref msg);
}


}

BR


Fabien Decret


ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



(e-mail address removed) a écrit :
 
Hi Fabien

In compact framework you don't have the WndProc in the Form
implementation. Event though, i think that WndProc is not trigged by
the messages sent to the activex control.
I think that i'll have to use the operating system APIs.

manuel
 
Use the SDF and an IMessageFilter implementation.

www.opennetcf.org/sdf

-Chris


Hi Fabien

In compact framework you don't have the WndProc in the Form
implementation. Event though, i think that WndProc is not trigged by
the messages sent to the activex control.
I think that i'll have to use the operating system APIs.

manuel
 
Hi Chris

yesterday i tried what you have suggested and it works. However, i've
just realize that it is not enough to do what i want.
I want to disallow all context menus trigged by the embedded control.
However, the produced sequence of messages does not allow me to imagine
how to do it. Tap and Hold... grrr!!
Any suggestion?

manuel
 
Back
Top