Add to Favorites    Make Home Page 185757 Online  
 Language Categories  
 Our Services  

Home » C++ Home » Computer Graphics Home » Cursor shapes

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Cursor shapes
Author nigi
Author Email riskyfriend [at] hotmail.com
Description u can c different cursor shapes in this program like butterfly,fish,smiley etc. Best for beginners
Category C++ » Computer Graphics
Hits 455483
Code Select and Copy the Code
#include<iostream.h> #include<conio.h> #include<graphics.h> #include<dos.h> union REGS i,o; struct SREGS s; initmouse(); showmouse(); void changecursor(int *shape); int cursor1[32]={ 0x0000,0xf00f,0xe007,0xc003, 0x8001,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x8001, 0xc003,0xe00f,0xf00f,0x0000, 0xffff,0x0ff0,0x1ff8,0x3ffc, 0x799e,0xf99f,0xffff,0xffff, 0xffff,0xffff,0xffff,0x7ffe, 0x3c3c,0x1ff8,0x0ff0,0xffff, }; int cursor2[32]={ 0xe00f,0xf10f,0xf81f,0x8c63, 0x0001,0x0001,0x0001,0x0001, 0x8003,0xc007,0xc007,0x8003, 0x8003,0xc7c7,0xffff,0xffff, 0x1010,0x0820,0x0440,0x739c, 0xfbbe,0xfffe,0xfffe,0xfffe, 0x7ffc,0x3ff8,0x3ff8,0x7ffc, 0x7d7c,0x3838,0x0000,0x0000, }; int cursor3[32]={ 0xffff,0xffff,0xffff,0xe03f, 0xc01e,0x800c,0x0801,0x8001, 0xc003,0x8003,0x0001,0x8009, 0xc01c,0xe03e,0xffff,0xffff, 0x0000,0x0000,0x0000,0x1fc0, 0x3fe1,0x7ff3,0xf7fe,0x7ffe, 0x3ffc,0x7ffc,0xfffe,0x7ff6, 0x3fe3,0x1fc1,0x0000,0x0000, }; int cursor4[32]={ 0xc003,0xdffb,0xd00b,0xd00b, 0xd00b,0xd00b,0xd00b,0xd00b, 0xdffb,0xc003,0xfc3f,0xfc3f, 0x0000,0x0000,0x0000,0x0000, 0x3ffc,0x2004,0x2ff4,0x2ff4, 0x2ff4,0x2ff4,0x2ff4,0x2ff4, 0x2004,0x3ffc,0x03c0,0x03c0, 0xffff,0xffff,0xffff,0xffff, }; void main() { int gd=DETECT,gm, xx,yy,b; initgraph(&gd,&gm,"c:\tc\bgi "); gotoxy(10,1); cout<<"Press any key and move the cursor to change shape "; gotoxy(60,25); cout<<"made by NIGI"; changecursor(cursor1); showmouse(); getch(); changecursor(cursor2); showmouse(); getch(); changecursor(cursor3); showmouse(); getch(); changecursor(cursor4); showmouse(); getch(); } initmouse() { i.x.ax=0; int86(0x33,&i,&o); return(o.x.ax); } showmouse() { i.x.ax=1; int86(0x33,&i,&o); return(o.x.ax); } void changecursor(int *shape) { i.x.ax=9; i.x.bx=0; i.x.cx=0; i.x.dx=(unsigned)shape; segread(&s); s.es=s.ds; int86x(0x33,&i,&o,&s); }

Related Source Codes

Script Name Author
Moving ball screen saver karlmarx
The Classic Game of Snake & Ladder Lakshmi Narayana .A
Railway seat reservation question which comes in sapient VyomWorld
To calculate percentile Ravi Mathur
Send to folder ANIMESH SAHU
Analog clock and calendar Nazia & Rida
HIGH/LOW GAME MOLLY ARORA
Data structure (stack Implimentation) Swapnil B Adsure
Memory Game AnirudhSanyal
Easy Calc Anirudh Sanyal
GK Quiz Anirudh Sanyal
Hangman Game Manish Jain
Snakeman Manish Jain
Full month Calendar Nigi
Animated 3D car Aayush Awasthi,Delhi

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptId=1220


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review