scroll.c

来自「图书借阅管理程序v1.2」· C语言 代码 · 共 21 行

C
21
字号
#include<dos.h>
#include<conio.h>
#include<stdio.h>
/*窗口滚屏(左上角,右下角,向上或向下(0,1),背景颜色)*/
void scroll(int left,int top,int right,int bottom,int status,int bkcolor)
{
union REGS regs;

light_mouse(OFF);
regs.h.ah=6+status; /*ah=06h 向上滚动当前页,ah=07h 向下.... */
regs.h.al=1;
regs.h.bh=16*bkcolor;
regs.h.ch=top-1; /*左上角行*/
regs.h.cl=left-1; /*列*/
regs.h.dh=bottom-1; /*右下角行*/
regs.h.dl=right-1; /*列*/
int86(0x10,&regs,&regs);
light_mouse(ON);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?