MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2004
Junior Member
White Belt
 
Join Date: Sep 2004
Posts: 8
Send a message via MSN to joer1234
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-29-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,503
Blog Entries: 3
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
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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();
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Location: Belgium
Posts: 2,318
Re: Preventing display of menu on R. Click of MapPoint Contr

Hi,

put an eventhandler in before click and set cancelto true
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
click, control, display, mappoint, menu, preventing


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
MP2K Magazine
Visitor Map



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