C Programming Reference >> C Advance Programming Tutorials >>
Mouse Programming In Cequisite Knowledege
02/01/07 - 22310 Views - Ratings :     4.83 of 5 / 862 Votes
Level - Beginner
In this tutorial you will learn how to do mouse programming through C. Mouse Programming in C is simple and beginners can give it a shot if they undestand carry on otherwise read the basic tutorials first and then comeback and learn how to do Mouse Programming using C. Before we get our hands dirty we begin with a breif intro.
Mouse has revolutionized the Computer World . It was introduced with GUI which stands for Graphical User Interface.
It was a big step forward thrusting computer from command line execution to hot and happening menu driven applications that we see today. Many GUI were based on keyboards but they never outweighed thier opponents based on mouse reason is simple, just imagine your Windows or Linux to be keyboard driven. Nothing less than a nightmare it seems.
Mouse is simple input device which allows you to point and execute interface and is faster than keyboards many times. Mouse generally provide random interface on other hand keyboards provide sequential interface.
This article will act as a complete source of Mouse Programming in C and covers it all aspects. If we still miss something please inform us and we will try to cover it next revised edition.
Mouse Programming is a topic which every c programmer from begginer to professional needs to have in his toolbox to have a cutting edge.
Mouse Programming will be used almost everywhere. It will embeded in games programming to commerical valued applications. So if you aim to easily understand other tutorials in this website you must master this topics and believe me its very easy.
Contents -
1. Requirements
2. Fundamental Knowledge.
3. AX Register
4. Detecting Mouse
5. Showing & Hiding Mouse
6. Detecting Input
7. Mouse Coordinates
8. Restricting Mouse
9. What Next?
1. Requirements
First and Formeost requirement which i believe will surely be satisfyied, you should have a mouse attached to your system.
This tutorial is written Turbo C++ 3.0 IDE and install in folder C:\TC. I recommend to use same IDE and settings to avoid any uncompatibility and even if you face any problem we provide an 24 X 7 Email Support to help you out.
You should have proper mouse driver for your hardware, this is also not a problem because almost 100% of operating System provide them through program MOUSE.COM or WITTYMS.COM.
That is all you need.
Back To Top
2. Fundamental Knowledge
Before we start harcore programming we must first understand some principles on which mouse programming is based.
First thing you must know how to tell a mouse to do anything. In actual we doesnot communicate with mouse directly but through the driver provide. We use interrupts to get access to this driver. Each device provide by computer has its own port and more or less we access these ports.
Each device has a unique port which is a hexadecimal value and value is designed to be machine independent enhancing portability of program.
Mouse has port attached to it 0X33 and similarly keyboard has attach to it port 0X60. We restrict ourself only to mouse port in this tutorial but keyboard is also used extensively in other programs especially ones related to games programming.
We also make use of address registers. These are basically Union of type REGS defined in dos.h. You dont need further knowledge of them for programming. Just remember we use two register to communicate to a device driver using two registers one for input and one for output.
We send value to device driver through the input register and recieve information in it embedded in output register.
Back To Top
3. AX Register
We can access various mouse functions using different values of AX input Register and passing those values to mouse port using a interrupt
The Functions are listed below - Here AX, BX, CX and DX are members of Union REGS and more or less integers.
Input Function Performed Returns
AX = 0 Get Mouse Status Output AX Value = FFFFh if mouse support is available.
Output AX Value = 0 if mouse support is not available.
AX = 1 Show Mouse Pointer Nothing
AX = 2 Hide Mouse Pointer Nothing
AX = 3 Mouse Position CX = Mouse X Coordinate
DX = Mouse Y Coordinate
Ax = 3 Mouse Button Press BX = 0 No Key Is Pressed
BX = 1 Left Button is Pressed
BX = 2 Right Button is Pressed
BX = 3 Centre Button is Pressed
Ax = 7 Set Horizontal Limit Nothing
CX = MaxX1
DX =MaxX2
Ax = 8 Set Vertical Limit Nothing
CX = MaxX1
DX =MaxX2
Now we step by step study each of these services in following sections and build up our combined code.
Back To Top
4. Detect Mouse
Before you start your embed mouse program you should always check wether the mouse programming is supported on not.
If some how mouse fails to initalise you should always make sure that either program terminates or employ a error handling approach that maybe shift to keyboard interface .
To do mouse programming you must include <dos.h>. We use a function called int86 to access interupts.
To detect mouse we use a function name detectmouse which has following code -
#include <dos.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
int main ()
{
detectmouse ();
getch ();
return 0;
} |
Back To Top
5. Showing and Hiding Mouse
Now first we show mouse on screen .
Mouse works both in text mode and graphic mode.
In text mode it looks like a square while in graphics mode it looks like a pointer.
Here is a screen shot for text mode.

It was produced from adding a function showmousetext to above code so code becomes -
#include <dos.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
int main ()
{
detectmouse ();
showmouse ();
getch ();
return 0;
} |
Here is a screen shot for graphic mode -
This is achieved using a function showmousegraphic added to above code while removing showmouse text from main.
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
int main ()
{
detectmouse ();
showmousegraphics ();
getch ();
return 0;
}
|
Next we do realtively simple task of hiding mouse using a function hidemouse as shown below -
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
int main ()
{
detectmouse ();
showmousegraphics ();
hidemouse ();
getch ();
return 0;
}
|
Back To Top
6. Detect Input
We will now work on a important aspect of mouse programming detecting clicks.
We make use of an aditional function known as kbhit ( ). This functions returns zero till any keypress and when a key is press it returns 1.
We use kbhit to run a infinite while loop.
For detecting mouseclicks we use a function called detect which displays on screen the respective button clicked. Press any keyboad key to exit the loop.
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
void detect ()
{
while (!kbhit () )
{
in.x.ax = 3;
int86 (0X33,&in,&out);
if (out.x.bx == 1) printf ("Left");
if (out.x.bx == 2) printf ("Right");
if (out.x.bx == 3) printf ("Middle");
delay (100); // Otherwise due to quick computer response 100s of words will get print
}
}
int main ()
{
detectmouse ();
showmousetext ();
detect ();
hidemouse ();
getch ();
return 0;
} |
Back To Top
7. Mouse Coordinates
We can obtain the coordinates of the mouse using same service 3 but using different elments of the union .
This function has a prime use in games programming, application designing and GUI development. Different decisions are taken on same left button click, its the postion of click that matters.
BX element of output registers stores the X Coordinate of the postion of mouse at time of calling function.
CX element of output registers stores the Y Coordinate of the postion of mouse at time of calling function.
Now we demonstrate the use of this function by modifying detect function above to display x,y and y coordinates on screen when left click is pressed.
Code will be as followed -
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
void detect ()
{
while (!kbhit () )
{
int x,y;
in.x.ax = 3;
int86 (0X33,&in,&out);
if (out.x.bx == 1)
{
x = out.x.cx;
y = out.x.dx;
printf ("\nLeft || X - %d Y - %d", x, y);
}
if (out.x.bx == 2) printf ("\nRight");
if (out.x.bx == 3) printf ("\nMiddle");
delay (10); // Otherwise due to quick computer response 100s of words will get print
}
}
int main ()
{
detectmouse ();
showmousetext ();
detect ();
hidemouse ();
getch ();
return 0;
}
|
Back To Top
8. Restricting Mouse
We now restrict the mouse in particular rectangle .
We create a function called restrict which takes four paramters, two cartesian points each containing one x coordinate and one y coordinate.
First point mentions the top of the rectangle while second point mention the bottom bottom point of rectangle.
This service has limited uses but can be quite handy in special circumstances, for eg - if you want to restrict your mouse in one particular size window in GUI or In Games Programming.
Now i give you final code of the tutorial -
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void restrict (int x1,int y1,int x2, int y2)
{
in.x.ax = 7;
in.x.cx = x1;
in.x.dx = x2;
int86 (0X33,&in,&out);
in.x.ax = 8;
in.x.cx = y1;
in.x.dx = y2;
int86 (0X33,&in,&out);
}
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
void detect ()
{
while (!kbhit () )
{
int x,y;
in.x.ax = 3;
int86 (0X33,&in,&out);
if (out.x.bx == 1)
{
x = out.x.cx;
y = out.x.dx;
printf ("\nLeft || X - %d Y - %d", x, y);
}
if (out.x.bx == 2) printf ("\nRight");
if (out.x.bx == 3) printf ("\nMiddle");
delay (10); // Otherwise due to quick computer response 100s of words will get print
}
}
int main ()
{
detectmouse ();
showmousetext ();
restrict (100,100,500,500); // Change values here to create different mouse movement space.
detect ();
hidemouse ();
getch ();
return 0;
}
|
Back To Top
9. What Next ?
Now first thing you must do is congratulate yourself because you just added a super weapon to you arsenal.
Now there is no stopping you. Let your creativity flow and world class products come out of your computer.
To get you started here what you can do with mouse programming -
1. Games Programming
2. Commercial Applications Development.
3. Graphical User Interface
4. Utitlity Softwares such as Paint, Word Processors , Spread Sheets and so on....
Before you get your hands dirty we recommend you go through our game building and application building Tutorials. Most of them are based mouse programming.
Also if you still want to hone your mouse programming skills further go through our advance tutorials such as mouse cursors, mouse drawing, menu through mouse and more...
Back To Top
Reader Comments -
| Akshat
|
Was Looking for this knowledge all over.
|
| Ahmed
|
Tons Of Knowledge!!!
|
| satyendra singh
|
superb artical
|
| hitesh sharma
|
really very helpful it was.
|
| Sohil Arora
|
Simply a superb article!!! Saved me from going through tons of books on the subject
|
| Sohil Arora
|
Simply a superb article!!! Saved me from going through tons of books on the subject
|
| vishal kedia
|
i have never seen such a lucid language to explain any thing
|
| Mahesh
|
than u.this is very excellent and very useful my project.
|
| mahesh
|
a small mistake in mouse coordinates,in the place of cx and dx u printed it as bx and cx.please modify that one.thanks.
|
| y v satyanarayana r
|
Excellent description . I am very thankful for this description.
|
| daniel rex.p
|
really superb ......i was fed up searching it everywhere..
|
| Shiv Prakash maurya
|
Very useful for beginners .I hope same in future.........................
|
| Sajal Gupta
|
Amazing Amazing Amazing :) That Says it all :)
|
| Rakesh kumar
|
Excellent !!!!!!!! Thanks alot.. i was looking for this stuff ........... thank alotttttttttt
|
| Atul Pal
|
Thnk u very much for this wonderful tute of advanced mouse programming.
|
| saurabh
|
i was looking for this only. tailor made for me. thanks a lot.
|
| alivia
|
THANKS A LOT,IT IS VERY HELPFUL
|
| madhur mehta
|
such powerful and excellent explanation i never had 4m anyone....that made me understand in a single go.....thanx a lot...
|
| akash
|
thanx thanx thanx................u r blessed
|
| venkat ramana
|
its very helpful
|
| sajaya
|
Really it's simply excellent, i have never seen such easy way to understand any program , ihave searched more than one month for this in net , but not get any thing. now i got it
|
| VIVEK SRIVASTAVA
|
WILL HELP ME IN MY MINI PROJECT THANKS
|
| Rehman
|
I was searching such kind of programming I realy like it much
|
| soumi chatterjee
|
it's great.i was searching for the concept.it would help me in my project...thanks a lot.
|
| Le My Canh (From Vietnam)
|
Thanks al lot!!
|
| vikas gupta
|
nice approach!!!!!!!!!!thnx
|
| Dipak Gaire
|
great page ....thankx
|
| Anand
|
It's good to see nice tutorial link this
|
| Manas
|
Amazing, I just got one more item in my belt to use in my project during summer vacations. Thanks to you I might rest assured get full marks in project. How can I thank you! GREAT JOB! YOU ROCK
|
| TRUSIT SHAH
|
This is the best program of using mouse in c. I am so thankful of that man who has made this.
|
| bibhuti
|
thanks for a brilliant totorial.i was looking for this type of prog.
|
| unknown
|
it ws very nice 2 c ur page.... b'coz we really needad it... thanx buddy
|
| the vow
|
cool this is exactlly what i need
|
| vishal
|
outstanding...simply great...like a honey thru your throat...!
|
| gajender singh
|
great programming.thank u i am looking for this type of programming.
|
| Kapoor
|
The product is quite simple for a gud start...!
Gr8 Work, Thnx
|
| Aayush
|
was excellent i was never able to understand mouse programming but here it was so easy
|
| Pulkit
|
Nice, keep it up ~
|
| Ashu
|
Thanx a lot. its really wonderful.
|
| Ramesh
|
Please sent the pgm in my mail Id Ramesh09_soft@yahoo.co.in
|
| pavi
|
its so excellent to learn basic funtions of graphics and its so easy
|
| sukumar
|
it's a helpfull tutorial for the newbie in mouse prpogramming
|
| sudh
|
Great tutorial , i dont think so i can get breif idea about mouse programmng even if refer good ebook
|
| Chidhambaram
|
Nice article for beginners about mouse programming.
|
| parikshit
|
dats really gr8.. dats the thing what i really want niceeeeee. ..
|
| tanmoy
|
its really helps me alot..
|
| Hardik
|
its really very good for the beginners. but it shuld also provide more details regarding advance mouse interaction such as mouse click detection, etc
|
| Anantharaj Manoj
|
it is very good,especially for the beginners. I request to add more and more programs related to it.
|
| Kelvin Mushure
|
it is a leading age technique that has groved my proramming skills to a blue chip level
|
| Rajz
|
WoW! All about mouse handling in C ! Easy to understand
|
| Binu
|
nice tutorial. patient and well explained :)
|
| Binu
|
nice tutorial. patient and well explained :)
|
| Abhinav Rastogi
|
Great tutorial!! Thanks a lot!! Nice and easy does it... -http://thephotoshopper.blogspot.com
|
| NILESH AGNIHOTRI
|
SUPERB MOUSE PROGRAMMING GUIDANCE.
|
| viKAS MEHTA
|
THAT'S NICE THAT I WANT
|
| kailas
|
tell me more knoledge
|
| SANCHIT AGRAWAL
|
THAT'S EASY AND SIMPLE TO UNDERSTAND.
|
| RAJESH KUMAR
|
ITS REALY NICE PROGRAM.
|
| Vaibhav Bhardwaj
|
It's good. Thanks
|
| owenheart
|
Nice code... it helps alot.. please show us more
|
| james
|
helpful program thanks for helping hand
|
| deependra
|
it is very helpfull for every student who wants to know about mouse programming
|
| Abhirup
|
the tutorial is just awesome...i found everything that i was looking for....i was able to write simple graphics programs after reading some helps in C and surfing the net but couldn't use the mouse and that was a big trouble for me.I was thinking to build a project in C and now i can use mouse pointer there.... thank you very much... :)
|
| Pradyot
|
Absolutely Superb Tutorial !! Helped me just in time to have an edge above the others in a National Project Display !! Thanks !!
|
| Yan Parkdey
|
it a good Turtorial Thank you so much
|
| Chiranjib Sur
|
Really excellent work. Has no parallel .
|
| Venkatesh
|
Well explained.More detailed explanation could make this 5/5 rated.
|
| Kaushalendraaaaaaaaaaaaaaaa
|
thanxs a lot buddy
|
| abhinav dhoke
|
samajh nahi aaya
|
| vikas agrawal
|
very funny.........
|
| nikhil
|
will it help in our project??
|
| VIVEK JHAWAR
|
it is very helpful...
|
| RAM NIWAS DHAKAD
|
ACCHA HAI PAR MERE SE JYADA INTELIGGENT AUR ACCHAA NAHI TO FIR RATING KYON DU
|
| JOJO
|
KITNE MISSED CALL MAROGI BHAI??
|
| RAM NIWAS DHAKAD
|
ACCHA HAI PAR MERE SE JYADA INTELIGGENT AUR ACCHAA NAHI TO FIR RATING KYON DU
|
| vicks babzzz
|
i luv vijeta
|
| JOJO
|
KITNE MISSED CALL MAROGI BHAI??
|
| abhinav dhoke
|
MERA MAJAK MAT UDAO
|
| BANDE
|
I LOVE PRATIBHA.....
|
| JOJO
|
KITNE MISSED CALL MAROGI BHAI??
|
| BANDE
|
I LOVE PRATIBHA.....
|
| milind
|
JOJO AUR VICKS BABBZ BHAI BAHAN
|
| DIPSY
|
UPAR KE LOGO ME SE KOI MERA SAR PHODO
|
| BANDE
|
I LOVE PRATIBHA.....
|
| KUNAL AND RUDHIR
|
HUM CHAKKE HAIN
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| KUNAL AND RUDHIR
|
HUM CHAKKE HAIN
|
| KUNAL AND RUDHIR
|
HUM CHAKKE HAIN
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| JOJO
|
ARE BHAI MUJHE KAHIN SE CALL AAYEGA YA NAHI MBA MAIN......... PLZ ......SUGGEST ME
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| MUMMY
|
MERA PHOTO NA LEKAR SAHI NAHI KIYA
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| abhinav dhoke
|
I LUV KEKRE
|
| MUMMY
|
MERA PHOTO NA LEKAR SAHI NAHI KIYA
|
| abhinav dhoke
|
MAIN BHI BOLUNGA TAB SE SHAANT THA MUJHE KUCHH NAHI BOLNE DIYA
|
| SWATI AND SUPRIYA
|
WE ARE ABNORMAL
|
| bamma
|
MOTA aa gaya reeeeeeeeeeeeee
|
| milind
|
I LUV VOLLYBALL KYONKI MERI PHANTI KHELTI HAI
|
| NIKHIL
|
ARE MUMMY JARA MERA BHI DHYAN RAKH LIYA KARO
|
| SHREYA
|
DOODH DOODH DOODH DOODHHHHHHHHHHHHHHHHHHH
|
| khan sir
|
r u getting or not
|
| nikhil
|
ab meri height wali dhundho
|
| NIKHIL
|
ARE MUMMY JARA MERA BHI DHYAN RAKH LIYA KARO
|
| SHUBHAM
|
MERE KHANDAN MEIN SABHI SHUBHAM RAHENGE
|
| aadi
|
medhak aise kaise has lete hain
|
| nikhil
|
ab meri height wali dhundho
|
| aadi
|
medhak aise kaise has lete hain
|
| nikhil
|
ab meri height wali dhundho
|
| viks bappzzz
|
bande ki maa ka bh****a mummy ko pata liya
|
| aadi
|
medhak aise kaise has lete hain
|
| Teelu
|
its nice par bakwaas hai bas hame taapne ko mila
|
| Anirudh
|
Excellent article. All that u need 2 know bout mouse programming . helped a lot. Thanks
|
| Vikas Verma S.G.S.I.T.S
|
Very nice article. It gives detail about the mouse related programming!! helped a lot. Thank
|
| Nikita cake
|
I LUV U DEEPU MODI
|
| abhinav d
|
very good article,takes time to understand but helpful
|
| Wizard
|
Very Informative tutorials.
|
| yoger
|
Superb article.......Good to learn quickly....
|
| Bill gates
|
Not Exellent... But Good
|
| Siddhant Gupta
|
Very good and easy to understand for a begginer.
|
| Satyendra Kr Sharma
|
Exactly what I needed..... very nicely defined the topic . great Information.....
|
| J@z
|
everything explained very efficiently ........in a very small n simple way............
|
| Neeraj Garg
|
quiet easy to learn & enjoyable ******* 7 star
|
| GAURAV SINGLA
|
Thanks a lot....I am now tutorilized in c hardware intrection mostly in mouse .....Thanks for this ......If u have another tutorial of hardware tutorial Email me .....auspicicious_gaurav@rediffmail.com
|
| piyush
|
this is a very excellent mode of sharing Knowledge.
|
| sparco
|
VERY GOOD BEST TUTorial i have ever found in net!
mouse pogramming for turbo c i hav searched never got this site at all!
|
| Sundarrajan
|
its really nice ! its very useful for me to handle mouse in C programming ! thanks a lot
|
| saumil
|
You should add new programs related to this mouse use.
|
| java
|
it was what i wanted
|
| s.singha
|
its a fantastic example and guide for the beginners ....Execellent site and help.....
|
| google
|
very good and helpful for all
|
| vivek tiwari
|
i m having a serious problem, if mouse is shown in white background colour... mouse becomes invisible what should i do?
|
| kalu ka ladoo
|
mujhe poti jaana hai lekin akale darr lagta hai.plz aap bhi chalo
|
| ansul gupta nitm cs gwalior
|
that was so informable
|
| Senthil
|
Really it is very useful for me. This is great tutorial i ever seen.
|
| mahesh
|
i am very very thankfull to all of yut for giving me code of mouse handling.
|
| ritika
|
it's really helpful to me....
|
| siddharth
|
i love kriti sehgal!!
|
| Gheorghe Matei
|
For this GREAT!!! thing any word is nothing.
|
| deepak
|
Its very useful to me................
|
| Gaurav Sharma
|
A really very nice tutorial Really helped me a lot
Thanks for this and try making ore tutorial like this
The best tutorial i have ever seen
|
| anshul patel
|
it is a nice tutorial .It helped me alot. thanx.
|
| virat
|
thnx really helped me a lot
|
| Niranjan
|
The flow is really simple to understand . thank u
|
| sandip pandey
|
GOOD TUTORIAL
|
| Avdhut Chavan
|
it's nice information. really helped me a lot thanx........
|
| Anoop
|
its ...realy good tutorial
|
| Sree Kumar Mca @ scms kerala
|
really cool and Simple..........
Tanx a lot....
Keep Posting
|
| husna
|
Excellent work!!! Thanks.
|
| amol nikate
|
providing such great information is really great... thanks allout
|
| shruti vyas
|
Thank you for this helping article..
|
| A.Dinakaran B.tech
|
nice .... it is very usefull... thanks
|
| mohit upadhyay
|
very nice . it's hepl me to understand mouse programming
|
| saurabh morchhale
|
very helpful & knowledge-oriented article superb work &thanks....
|
| Amith
|
Pls prepare a tut of advanced C++ apps and their implementation.
Excellent work.
|
| Radhika
|
awsome content.............. quite useful. Thanx !
|
| Akshat Nigam
|
I was thinking for it to add it in my program. Suddenly, i found it. Thanks..........
|
| Akshat Nigam
|
I was thinking for it to add it in my program. Suddenly, i found it. Thanks..........
|
| ABHILASH MISHRA
|
VERY NICE AND TAILOR MADE
|
| arunasuji
|
very good informative
|
| Rajneesh
|
realy nice article...
|
| Dushyant Goswami
|
Keep up the good work.
|
| bishwa
|
thanks for helping......like this way.......it is realy easy to search and read.......and understand......thanks
|
| Saikat
|
Mind blowing description. Thanx a lot.
|
| Mahendra Singh Bisht
|
Thanks a ton, this article is really impressive and handy to digest for computer as well as programmer. thanks
|
| sarvesh
|
superb,mind blowing,fantastic,,,, jai mata di rocks
|
| Israel
|
Very usefull...thank you so much...Dominican Republic...
|
| ishwar chauhan
|
it was excellent , thanku for guiding
|
| sanjay chandrakant salunkhe,virar
|
the information was very helpfull.. thank you so much..
|
| praveen
|
simply outstanding
|
| tormentor
|
superb material.
|
| jr
|
how can i move a rectangle when mouse cursor move in mouse programming in c....??? if u have some idea replay soon......
|
| sreedev
|
good codes..........
|
| sreedev
|
Why mouse pointer is restricted to half screen when i run (I'm not using any restriction function)...first it was working when i try to run it on next day it happened
|
| Priyanka Gosavi
|
Nicely interpreted,and easy to understand
|
| simplysivu
|
I thought mouse programming is tough but you made it as a cake walk. give clearly about int 86, in and out registers
|
| GAZAL
|
Reall an intresting and an useful text fuul of knowledge thanks for providing
|
| k.m.yadeeshkumar
|
sir,it's really excellent sir and i need how to change how cursor,how to draw using mouse.
|
| dheeraj kuamr
|
thanks for providing this useful topic because i realy don't know about this....thanks again....
|
| Kunal
|
thanks it really help me a lot
|
| MANISH
|
EXCELLENT FOR A NOVICE.
|
| Raaj
|
Here is the article for Mouse programming in C. In this link full details are given nicely. http://electrofriends.com/articles/computer-science/c-tutorials/mouse-programming-in-cc/
|
| shiva
|
rajshiva26@YAHOO.COM
|
| Sachin
|
This exercise is very benifitial for me .i learned a lot by this....
|
| kotireddy
|
this tutorial is very good but we need more information about mouse concepts
|
| NIkhil Verma
|
Wow man use of mouse can be so cool in C program.this is excellent.THANKS!!!
|
| NIRMAL [IRTT]ERODE
|
YA ITS NICE .........
|
| ayusgh
|
it is good..thanks for learning me this mouse pro....
|
| ayush
|
hiiiiiii.....info about mouse pro above is very useful....i ll tell my friends to learn frm here.....thanks man...
|
| anupam
|
kuch samajh nahi aa raha hai....................................
|
| anupam
|
kuch samajh nahi aa raha hai....................................
|
| devanplli shridhar
|
nice helped me to recatch all the stuff
|
| prini chakraborty
|
it ws an amazing tool...it fled up my knowledge in mouse programming...thnx a lot..
|
| 56777393
|
cool!!!!!!!! extremely useful
|
| JMako
|
This was great! Thanks a lot!
|
| mangesh gaherwar
|
thank u sir i i was in searching for this from many days
|
| kaushik
|
hey dats xcellent!!! thnks a lot!! u r helpin a lot of ppl!!
|
| MUDDASSIR
|
It is really really.... helpfulll.......nice work done by u people.... but i also hav a query i want to see the tutorial of paint ....but when i click on that it will show nothing but say it protected.... how can i see that tutorial can any one help me.....
THANX ALOT
|
| MUDDASSIR
|
It is really really.... helpfulll.......nice work done by u people.... but i also hav a query i want to see the tutorial of paint ....but when i click on that it will show nothing but say it protected.... how can i see that tutorial can any one help me.....
THANX ALOT
|
| MUDDASSIR
|
It is really really.... helpfulll.......nice work done by u people.... but i also hav a query i want to see the tutorial of paint ....but when i click on that it will show nothing but say it protected.... how can i see that tutorial can any one help me.....
THANX ALOT
|
| shoaib
|
Nice tutorial.. thanx...
|
| Sudhanshu Kumar
|
The contents are really good. As there always exists some improvement, I'd like to say, it'll be better if you add explanation of each line specially the keywords and there argument's list explanation. It'll help every person more effectively. Rest are marvelous. thanx.
|
| Nikhil Pawanikar
|
This is great. Marvelous. Fantabulous.
|
| jayprakash.554@gmail.com
|
This is very good knoledge about mouse handling. thank you alot of.
jayprakash - a software developer in ajsoft company.
|
| Vishal Manwatkar
|
ThankYou
|
| silverox
|
Very well explained. Thanks a lot :)
|
| Samanaya Roy
|
Best website to learn C programming
|
| MITUL
|
THAT WAS INVALUABLE AND GREAT.....A SHEAR CLASS IN ITSELF
|
| geetha
|
its indeed useful............ Thanks a lot!
|
| geetha
|
its indeed useful............ Thanks a lot!
|
| Pramod M
|
Good Programming... Thank U.
|
| Junaid
|
Very Acknowledging......
|
| Avinash Dubey
|
excellent programs
|
| shankar
|
the information is really cool .thanks a lot. it is so simplified and easy to learn
|
| prijilps
|
easy to learn//// it would be more helpful if there is a tutorial for unix...
|
| Niel
|
Very good, except for the showmousegraphic() part... which seemed to rpeatedly give me an error :-/
|
| Harshit
|
need to knw more ...like hover...nd more mouse functions in ansi c...
|
| subash
|
thanks a lot..... its awesome
|
| Tanjil Ahsan
|
Hey sir This article helped me well. But I found some spelling mistake those are:
4. wether=whether ; on= or
|
| Sujay
|
Thanx a lot..............this is the best site regarding programming i have ever visited
|
| Shishir Bhattarai
|
really useful
|
| RAANA SYEDA
|
THATS REALLY GOOD
|
| Rakesh
|
Very AWESOME tutorial!!!! i never knew u could do these in C..
Is there any special thing for C++???
|
| Pradeep k
|
it was a nice tutorial and really usefull.
|
| senjaliya kirit
|
good example got from you
|
| vishnu chebrolu
|
thanq boss
|
| Navi
|
very knowledgable and easy stuff.... damn good work....
|
| richa
|
hey my coodinates are cming for 6 times plz help me out
|
| Sudhanshu Kumar
|
HI, please add one more subsection explaining how can we move mouse pointer through C not using mouse. thanx.
|
| Sathish Kumar Baskar
|
I'm very clear about mouse concepts. This tutorial is extraordinary. I'm going to develop a GUI.
|
| Debashis Mishra
|
Really nice collections... but i ve some more abt mouse using c...if any one want plz cantact on debashis.sw@gmail.com
|
|