mfc >> How to click Right click message for activex control on container window ?

by Jigar Mehta » Wed, 15 Mar 2006 04:22:45 GMT

Hi,

I have inserted one activeX control on my dialog based application.
Now, i want to get notification to the right-click on my activex
control in my container window (dialog-on which i have inserted the
control). I dont think activex control has any handling for right mouse
click. I added WndProc function in my dialog but i dont get right click
message for activex into that.. So, any suggestions as to how I can get
it ?

Regards,
Jigar Mehta



Similar Threads

1. Context Menu Click event - how to Identify the object that was right clicked - CSharp/C#

2. How to distinguish right click from left click forNIN_BALLOONU

3. How to distinguish right click from left click forNIN_BALLOONUSERC

4. ? [Transparent] Click-Through Windows (Mouse Clicks Fall Through To Window Below)

Hi,

I'm working on an MFC app and I need a way of creating a window that is for
all intents and purposes transparent.  I will need to be visible (and
partially transparent) and all mouse clicks should go right through it to
the window below.

I've got two programs that do this sort of thing but I am unable to
reproduce it.  One is a Delphi app that has a TForm1 class window set to
WS_EX_TOOLWINDOW|WS_EX_TRANSPARENT and the other uses dialog class (#32770)
with just WS_EX_TRANSPARENT.


Does anyone know a way to do this?  Are there any examples?

Thanks a lot.


-- 
news <.> alec <@> synetech <.> cjb <.> net


5. Windows message flow from container to Activex control

6. Control Right Click Selection

Hi,

I was just wondering if any one could help me out with a question I
have.

The controls im using, grids and treeviews, allow the child nodes and
rows to be selected by left clicking over them.  I just need to work
out how to replicate this using the right click as well.

Any help would be much appreciated.

Matt

7. Right click in treeview shows different control depending on node-type - CSharp/C#

8. How to identify control which was _right_ clicked?

Hello out there,
I have a context menu where some entries will have to be changed at
runtime depending on which control was clicked.

I install an event handler
    ContextMenuStrip.Opening += new CancelEventHandler(cms_Opening);
(based on an example I found somewhere).

Now the signature of 'CancelEventHandler' is
    void cms_Opening(object sender, CancelEventArgs e)
and 'CancelEventArgs' does not contain X and Y coordinates.

Currently I have no idea how to solve this - any advice will be
greatly appreciated.
Best regards
Helmut Giese