Current area: HOME ->

Zip File view

Dptool


This page allows you to view the contents of a file contained inside a ZIP archive available at Programmer's Heaven. This means you can view the code and find what you need from it without having to download the ZIP file first. If the file contains source code for a language we recognize, we have syntax highlighted it.

Filename displayed: TESTCURS.CPP
Found in file: DPTOOLS.ZIP

Download: Huge collection of Falcon 030 tips & tricks
#include <stdio.h>
#include <dos.h>
#include <conio.h>

struct PointActifStruct { int X, Y; };

struct dessin_curseur
{ PointActifStruct PointActif;
  unsigned ScreenMask[16];
  unsigned CursorMask[16];
};

/* mettre ici les conts */
const dessin_curseur hand = {{0,0},
 {65407,65087,65087,54335,
  32831,32831,32831,15,
  7,7,7,7,
  7,15,15,32783},
 {128,320,320,11072,
  21824,21824,21824,32880,
  32840,32840,32840,32776,
  32776,32784,32784,32752}};
const dessin_curseur tetemort = {{0,0},
 {65535,57359,57335,42011,
  44253,44253,42013,49149,
  54779,57339,57335,57231,
  54655,54655,49279,65535},
 {0,8176,8200,23524,
  21282,21282,23522,16386,
  10756,8196,8200,8304,
  10880,10880,16256,0}};

void initmode()
{ _AH   =   0x0;
 _AL    =  0x13;
 geninterrupt(0x10);
}
void MontrePointeur()
{
 _AX      =  0x1;
 geninterrupt(0x33);
}

int MouseStat(int *Nbbouton)
{ int Status;
 _AX       =   0x0;
 geninterrupt(0x33);
 Status    =  _AX;
 *Nbbouton =  _BX;
 return Status;
}

void change_Cursor(const dessin_curseur &NewCursor)
{ REGS regs;
  SREGS sregs;
  regs.x.ax = 9;
  regs.x.bx = NewCursor.PointActif.X;
  regs.x.cx = NewCursor.PointActif.Y;
  regs.x.dx = FP_OFF(NewCursor.ScreenMask);
  sregs.es  = FP_SEG(NewCursor.ScreenMask);
  int86x(0x33, &regs, &regs, &sregs);
}

void main()
{int NbBouton;
 initmode();
 if (MouseStat(&NbBouton))
     {MontrePointeur();
      change_Cursor(hand);
      getch();
      change_Cursor(tetemort);
      getch();
     }
textmode(C80);
}


PE_MAP
This tool dumps the structure of a Windows NT executable (which is in the so-called "portable-executable-format"). It comes in handy if you want to know how good your linker is, which fu...
TDockBar v1.0 - This is a dockable toolbar.

Huge collection of Falcon 030 tips & tricks

Download PE_MAP This tool dumps the structure of a Windows NT executable (which is in the so-called "portable-executable-format"). It comes in handy if you want to know how good your linker is, which fu... Download TDockBar v1.0 - This is a dockable toolbar. Download Huge collection of Falcon 030 tips & tricks







Sponsored links

Localize software in three simple steps
Localize .Net, C/C++ & Delphi apps visually. HTML, HTML Help, XML & databases. Try Sisulizer now!
Localize Delphi software in three simple steps
Localize Delphi VCL & .Net apps visually. Plus HTML, HTML Help, XML & databases. Try Sisulizer now!
Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
Computer Professionals: Are you owed Overtime?
Federal and State Laws may allow computer professionals to collect overtime. Our law firm is experienced, and has initiated class action lawsuits against some of the largest computer companies to collect back pay and overtime. Strictly Confidential.
CSTSOFT Instrumentation .NET & ActiveX Components
A collection of 13 instrumentation .NET/ActiveX/VCL components including Gauge,Knob,LED,Trend etc.


Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.