mouse functions for DOS
Please support our C++ advertiser: Programming Forums
![]() |
I don't know about .NET, but the Win32 functions are all listed here: Console Functions (MSDN).
You will need to enable mouse input with SetConsoleMode.
You can read it using ReadConsoleInput.
Use GetStdHandle to get a windows handle for the console input.
Use GetNumberOfConsoleInputEvents to poll for any console input, or use the console input handle with one of the wait functions.
Hope this helps.
[EDIT] Alas, AD, the cursor info is for the little blinking square or underline in the output console display.
You will need to enable mouse input with SetConsoleMode.
You can read it using ReadConsoleInput.
Use GetStdHandle to get a windows handle for the console input.
Use GetNumberOfConsoleInputEvents to poll for any console input, or use the console input handle with one of the wait functions.
Hope this helps.
[EDIT] Alas, AD, the cursor info is for the little blinking square or underline in the output console display.
Last edited by Duoas : Jan 21st, 2008 at 6:07 pm.
Here are some example console programs. I have not used to code for a few years, but since its win32 api functions I suppose the programs will work with modern compilers.
Last edited by Ancient Dragon : Jan 21st, 2008 at 7:01 pm.
•
•
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
Here are some example console programs. I have not used to code for a few years, but since its win32 api functions I suppose the programs will work with modern compilers.
Ross
•
•
•
•
Those links don't work for you?
Don't you dare put words in my mouth. If you want to edit your own posts again have fun.
I agree completely and apologize for that error. I meant to quote your post, not edit it. I removed my post and put it below.
MSDN is FREE for god's sake. www.microsoft.com But I suspect you are talking about the subscriptions which have huge annual fees.
![]() |
Similar Threads
Other Threads in the C++ Forum
- i need a calculator too... (Assembly)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- DECLARATION SYNTAX ERROR (for bc 31 user) (C++)
Other Threads in the C++ Forum
- Previous Thread: Class Movie...error undeclared identifier
- Next Thread: Help on function pointers
•
•
•
•
Views: 1488 | Replies: 11 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode