Mouse Events

This is a discussion on Mouse Events within the Windows Programming forums, part of the Platform Specific Boards category; First of all I am pretty much a novice when it comes to Windows programming so no laughing!! Here is ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    16

    Question Mouse Events

    First of all I am pretty much a novice when it comes to Windows programming so no laughing!!

    Here is the deal....

    I have created a MFC app with the main window being a dialog that has 5 ActiveX graph controls (child windows) inside of it. I do not have the code that was used to develop these ActiveX controls which is a bummer.

    Ok what I want to do is be able to right click on a graph, get a popup context menu that would allow me to select a command that would blow up a graph to full screen(within the confines of the main dialog). I have created the menu and mouse event handler inside of the main dialog class. The problem is it appears as if the child controls eat up the WM_RBUTTONUP message which I want the main dialog window to intercept and handle. I can't seem to attach any mouse event handlers to the child controls as I do not have the code to the ActiveX controls.

    So does anyone know of a way to bypass all child controls and force the main dialog to accept all mouse events inside of its client area? Any help would be greatly appreciated.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,630
    You can try overloading "WindowProc()" method in your CDialog object and handle the mouse events there.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mouse Events
    By tezcatlipooca in forum Windows Programming
    Replies: 2
    Last Post: 01-24-2008, 01:33 PM
  2. Watch for mouse events
    By belhifet in forum Linux Programming
    Replies: 2
    Last Post: 04-10-2007, 11:12 AM
  3. Mouse Events
    By disruptor108 in forum C# Programming
    Replies: 0
    Last Post: 01-23-2007, 10:40 PM
  4. API for mouse events?
    By jsimpson in forum C Programming
    Replies: 0
    Last Post: 03-08-2006, 10:38 PM
  5. capturing mouse events
    By leojose in forum Windows Programming
    Replies: 7
    Last Post: 06-06-2005, 10:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21