Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Preventing display of menu on R. Click of MapPoint Control

This is a discussion on Preventing display of menu on R. Click of MapPoint Control within the MapPoint Desktop Discussion forums, part of the Map Forums category; Can someone tell me how I go about coding in VB6 how to intercept and prevent the context menu from ...

  1. #1
    joer1234 is offline Junior Member White Belt
    Join Date
    Sep 2004
    Posts
    8

    Preventing display of menu on R. Click of MapPoint Control

    Can someone tell me how I go about coding in VB6 how to intercept and prevent the context menu from displaying when I right-click on the MapPoint control? - I suspect I have to use the SelectionChange event, but I am not sure what I need to do. My goal is to prevent menu interaction when a user right-clicks on the control.

    Thanks,
    J. R.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    There is some discussion about this here.. :
    http://www.mp2kmag.com/mappoint/disc...pic.asp?t=4315

    Ah, here is a better discussion..:
    http://www.mp2kmag.com/mappoint/disc...pic.asp?p=5974

    Try using the Google search box at the bottom and restrict the search to mp2kmag.. also try the forum's built-in search feature above.

    hope this helps!
    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Easy way in VC++

    A quick and easy way to do it in VIsual C++ is to catch the mouse down event and capture the momuse up event in the parent control of the mappoint control.

    /////////////////////////////////////////////////////////////////////////////
    // JMapPointCtrl message handlers

    void
    JMapPointCtrl::OnParentNotify( UINT message, LPARAM lParam )
    {
    if (message == WM_RBUTTONDOWN)
    {
    SetCapture();
    }
    }
    void
    JMapPointCtrl::OnRButtonUp( UINT nFlags, CPoint point )
    {
    //Just swallow this event to disable the shortcut menu
    ReleaseCapture();
    }

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Preventing display of menu on R. Click of MapPoint Contr

    Hi,

    put an eventhandler in before click and set cancelto true

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Click events of context menu are not firing....
    By Learner in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 05-12-2008, 03:33 PM
  2. By Right-click displaying context menu on map
    By Banu in forum MapPoint Desktop Discussion
    Replies: 19
    Last Post: 10-16-2007, 08:46 AM
  3. mappoint 2002 - Disable "click the logo and display hel
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-12-2003, 08:39 PM
  4. Preventing 'Save As' Dialog (using the OCX!)
    By daxydoggie in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-15-2003, 03:07 PM
  5. Is there a way to control the display of town name....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-06-2001, 09:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96