Thread: Simple mouse input and more...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    Simple mouse input and more...

    What I need to know is how to read the input from the mouse scroll wheel? Can I use this without MFC? OS: XP, VC++6

    Thanks,
    Kristian

  2. #2
    Madly in anger with you
    Join Date
    Nov 2005
    Posts
    211
    sure you can do it without MFC.

    this link might help you:

    https://msdn.microsoft.com/library/d...mouseinput.asp

    specifically:

    https://msdn.microsoft.com/library/d...ousehwheel.asp

    Intel Core 2 Quad Q6600 @ 2.40 GHz
    3072 MB PC2-5300 DDR2
    2 x 320 GB SATA (640 GB)
    NVIDIA GeForce 8400GS 256 MB PCI-E

  3. #3
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Every thing that can be done by MFC, can be done by API too.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    11
    Ok, thanks for your help but I don't understand how "WM_MOUSEHWHEEL" really works and if that's what I should use.

    I was thinking of using the mouse scroll to scroll through a menu in a windows console application. Instead of using the keyboard to select a menu choice. Is that also possible?

  5. #5
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    I was thinking of using the mouse scroll to scroll through a menu in a windows console application. Instead of using the keyboard to select a menu choice. Is that also possible?
    You can get mouse position. You can get wheel move. So I think it is possible.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed