Results 1 to 6 of 6

Thread: TrackMouseEvent()

  1. #1
    amac
    Guest

    TrackMouseEvent()

    Has anyone gotten this to work?

    Oh wait... I have gotten it to work because it won't compile. It says it requires NT 4.0 or greater... or Win98 or greater... well I am using NT 4.0 and its not....

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    what's your code?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    amac
    Guest
    I dont really have any code...

    you pass a TRACKMOUSEEVENT struct into the
    TrackMouseEvent(), which tells the system to send other mouse related window messages (eg. WM_MOUSEHOVER)...


    I get undeclared identifiers when I try to do this.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    does your project define WINDOWS_LEAN_AND_MEAN ? Multimedia for example is disabled by this...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    amac
    Guest
    I did have it defined, but it didnt make a difference when I removed it...


    Out of curiousity... what else does WIN32_LEAN_AND_MEAN get rid of?

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Code:
    #ifndef WIN32_LEAN_AND_MEAN
    #include <cderr.h>
    #include <dde.h>
    #include <ddeml.h>
    #include <dlgs.h>
    #ifndef _MAC
    #include <lzexpand.h>
    #include <mmsystem.h>
    #include <nb30.h>
    #include <rpc.h>
    #endif
    #include <shellapi.h>
    #ifndef _MAC
    #include <winperf.h>
    
    #if(_WIN32_WINNT >= 0x0400)
    #include <winsock2.h>
    #include <mswsock.h>
    #else
    #include <winsock.h>
    #endif /* _WIN32_WINNT >=  0x0400 */
    #endif /* ! _MAC*/
    #ifndef NOCRYPT
    #include <wincrypt.h>
    #endif
    
    #ifndef NOGDI
    #include <commdlg.h>
    #ifndef _MAC
    #include <winspool.h>
    #ifdef INC_OLE1
    #include <ole.h>
    #else
    #include <ole2.h>
    #endif /* !INC_OLE1 */
    #endif /* !MAC */
    #endif /* !NOGDI */
    #endif /* WIN32_LEAN_AND_MEAN */
    That's a lot. Multimedia, OLE, common dialogs, winsock, the shell API, Printer and some more...

    Browse <windows.h> if you want to know more.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width