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

Canceling mouse clicks in C++

This is a discussion on Canceling mouse clicks in C++ within the MapPoint Desktop 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 ...

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

    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;
    }

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

    Don't know why?

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

    *Cancel = 0xffff;

  3. #3
    Joel is offline Junior Member White Belt
    Join Date
    Aug 2003
    Posts
    10

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

    Re: Works?

    Quote Originally Posted by Joel
    Did that work?
    Works !

Thread Information

Users Browsing this Thread

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

Similar Threads

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