Recent Posts

C Program to restrict Mouse pointer in a Rectangle

This C Program will restrict the Mouse pointer Position in the Rectangle. The Mouse Programs are listed here if you want to learn more C Graphics Programs for Mouse. Also If you want to learn how to restrict the Mouse Pointer in Circle then check here. #include<dos.h> #include<graphics.h> #include<conio.h> int initmouse(); void showmouseptr(); void hidemouseptr(); void restrictmouseptr(int, int, int, int); union REGS i, o; main() { ...

Read More »

Restrict Mouse Pointer in Circle C program

How to restrict Mouse Pointer in Circle using c Graphics Programming is given here. #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<math.h> union REGS i, o; int initmouse() { i.x.ax = 0; int86(0X33, &i, &o); return ( o.x.ax ); } void showmousepointer() { i.x.ax = 1; int86(0X33, &i, &o); } void hidemopusepointer() { i.x.ax = 2; int86(0X33,&i,&o); } void getmousepos(int *x, int *y) { ...

Read More »

Hide Mouse Pointer C Program

How to Hide a Mouse Pointer Program in C : This program will show and hide the mouse pointer after each user input by a key stroke. Illustration & Example: There are two functions used in the program- showmousepointer(); -> To Show / display the pointer hidemousepointer(); -> to Hide / disappear the pointer   Initialise the Graphics using a graphic driver variable. Then ...

Read More »