MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Canceling mouse clicks in C++

This is a discussion on Canceling mouse clicks in C++ within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am currently writing an application in Visual C++. I have encountered a problem in trying to override the mouse ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-05-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Canceling mouse clicks in C++

I am currently writing an application in Visual C++. I have encountered a problem in trying to override the mouse operations using the BeforeClick and BeforeDblClick operations. Setting Cancel to TRUE, which should effectively disable activities does not seem to work. Even taking all my code out to leave the following fragment does not stop the mouse working as normal when a user clicks on the map. Has anybody else encountered this problem in C++

Code:
void CEditGeofences::OnBeforeClickMap(long Button, long Shift, long X, long Y, BOOL FAR* Cancel) 
{
     *Cancel=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
  #2 (permalink)  
Old 08-05-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Don't know why?

Been there, done it. Uses different bit or something?

*Cancel = 0xffff;
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 08-13-2003
Junior Member
White Belt
 
Join Date: Aug 2003
Posts: 10
Works?

Did that work?
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-01-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Re: Works?

Quote:
Originally Posted by Joel
Did that work?
Works !
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


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
Getting the Zip code and City when user Clicks Map Anonymous MapPoint 2006/2009 Discussion 1 01-21-2005 02:39 AM
Mouse Down Troubles Matrices MapPoint 2006/2009 Discussion 0 11-24-2003 05:51 AM
getting the clicks on the mapcontrol blackmap MapPoint 2006/2009 Discussion 2 02-13-2003 10:24 AM
Ist it possible to get X, Y from mouse move blackmap MapPoint 2006/2009 Discussion 1 12-16-2002 03:54 PM
When the user clicks on the MP2K map, the 'Select .... Anonymous MapPoint 2006/2009 Discussion 1 08-11-2001 04:19 AM


All times are GMT -5. The time now is 12:17 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Flights to Morocco
Book flights to Morocco and explore the rich traditional Moroccan culture. Use the Holiday Hypermarket flight search to find great value flights to Morocco.

Greece Weather
Check Turkey Weather before you travel. We provide information on Turkey including weather, flights and accommodation.

Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.

Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.

Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com

Holiday
For the holiday of your life, that is easy to plan, visit Travel.co.uk to see all the options.

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.


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