MOUSE_C

所属分类:Windows编程
开发工具:DOS
文件大小:5KB
下载次数:13
上传日期:2005-12-12 16:36:31
上 传 者木子gua
说明:  鼠标中断C语言程序...对C语言用户的鼠标开发有所帮助!
(mouse interrupted C language program. . . Users of the C language development of the mouse help!)

文件列表:
MOUSE_C (0, 2004-09-06)
MOUSE_C\MOUSE.C (10580, 1990-09-06)
MOUSE_C\MOUSE.H (1628, 1990-09-05)

MOUSE.C Microsoft Mouse Functions Version 1.00 9-05-90 Copyright 1990 Gary W. Wood All Rights Reserved. You are free to use, copy and distribute these functions for noncommercial use IF: NO FEE IS CHARGED FOR USE, COPYING OR DISTRIBUTION. IT IS NOT MODIFIED IN ANY WAY. Gary W. Wood disclaims all warranties as to this software, whether express or implied, including without limitation any implied warranties of merchant- ability, fitness for a particular purpose, functionality or data integrity or protection. I had to create these functions to control the mouse for my shareware program XLIST.EXE distributed on BBS systems for hard disk management. I'm providing these to others who may have had the same level of frustration at making the mouse function right. These functions help in knowing when the buttons are released. (See mouse_release() functions) These functions can be compiled either as a DOS function or a OS/2 function depending on setting a define of OS2 using the the /D option of the compiler. The default is to be DOS functions. Example: CL /AM MOUSE.C <--- Medium model DOS function CL /AM /DOS2 MOUSE.c <--- Medium model OS/2 function -------------------------------------------------------------------------------- Call: mouse_open(row,col,mask) row = integer initial row position of cursor col = integer initial column position of cursor mask = what functions of mouse to support (see OS/2 Technical Reference for MouSetEventMask() Returns: OS/2 = handle (0xff = not functional) -------------------------------------------------------------------------------- Call: mouse_close() -------------------------------------------------------------------------------- Call: mouse_wait_ki() Returns: 0 = Mouse button not pressed before keystroke 0x04 = Button 1 Pressed 0x10 = Button 2 Pressed -------------------------------------------------------------------------------- Call: mouse_read(flag) flag = Wait for mouse press when = 1 Will set the information in structure MOUEVENTINFO to reflect the button press, row, and column location of cursor. (see mouse.h) Returns: 0x00 = No Buttons Pressed 0x04 = Button 1 Pressed 0x10 = Button 2 Pressed -------------------------------------------------------------------------------- Call: mouse_release(button) button = button to check 0 = button 1 , 1 = button 2 Used in conjunction with mouse_read(0) function to know when the button is released. Returns: 0x00 = No Buttons Pressed 0x01 = Button 1 Pressed 0x02 = Button 2 Pressed -------------------------------------------------------------------------------- Call: mouse_hide() Always hide the mouse with the mouse_hide() function before changing the screen. Then use the mouse_show() function to redisplay the cursor. -------------------------------------------------------------------------------- Call: mouse_show() Always hide the mouse with the mouse_hide() function before changing the screen. Then use the mouse_show() function to redisplay the cursor. -------------------------------------------------------------------------------- Call: mouse_position(row,col) row = integer initial row position of cursor col = integer initial column position of cursor -------------------------------------------------------------------------------- Call: mouse_ki_chk() Returns: 1 = Keystroke available 0 = Waiting for Keystroke to be entered ******************************************************************************** Any comments or reports of bugs can be reported to me via Genie mail at G.WOOD4 or Compuserve userid 76156,317 Gary W. Wood 5401 Lakeview Road North Little Rock, AR 72116 (501) 758-34***

近期下载者

相关文件


收藏者