Skip to main content
gamedev.net
🔒 Locked

Message Proc & Console Program

Started by Tonic151 3 replies 600+ views
Original Post
Tonic151
Tonic151
Hi, I''m looking for an easy way to add message handling to my console program. I''m not looking to make a full win32 app, but i would like my console app to have easy access, and really it''s own message proc where it can easily grab mouse clicks. My program is multithreaded so i can run this in a seperate thread, but i was wondering how i could create one simply in a console application. I saw a couple examples some time ago, but for the life of me i haven''t been lucky enough to find that same example again.. I mainly want this so i can easily minimize my console app the the task bar window, and the only way to register the mouse clicks is when a message proc system. Any help even a small example how to get a message proc in a console program would be most apprecieated! Thanks in advance
daerid
daerid
do you want to capture the mouse clicks on the console window? Like trapping for the minimize button or something like that?


daerid | Legends | Garage Games | Spirit | Hapy | Boost | Python | Google
"Doomed to crumble, unless we grow, and strengthen our communication" - Maynard James Keenan, Tool
daerid@gmail.com
Tonic151
Tonic151
quote:
Original post by daerid
do you want to capture the mouse clicks on the console window? Like trapping for the minimize button or something like that?



excatly.. i want to be able to capture the mouse events so i can minimize my program to an icon in the taskbar. any help on a message handler would be most apprecieted.
_Twiggie_
_Twiggie_
Here is a link that might help implementing a message handler/procedure. It''s not exactly what you are looking for but with some changes it should work. (and of coarse not the only way to go about it but its an idea )

here
Tonic151
Tonic151
ah thank you sir, i think this will help a lot!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.