How to use mouse in Win32 Console

Hi guys. I want to show and control mouse in Win32 Console. What should I do? And I want to learn MFC programing. Who can give me ebook?
Thanks so much!!
Why do you want to do anything in the console?

Even if you're not going to make a game in the console, read this anyway:
http://www.cplusplus.com/articles/G13hAqkS/

I won't stop you from learning MFC, but I would like to know why you're interested in it so arbitrarily. Why not learn to use a cross-platform library?
I have a big exercise. and I want it more lively
You need to turn on mouse events with SetConsoleMode() and then listen for them (along with all other console input) using ReadConsoleInput().

Read more about using the Console here:
http://www.google.com/search?btnI=1&q=msdn+Console+Functions

The other option you have available is using PDCurses, which will also let you get mouse input.
http://pdcurses.sourceforge.net/

Good luck!
Topic archived. No new replies allowed.