⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 windowsclass.c

📁 用于计算一个很长的式子
💻 C
字号:
#include"windowsclass.h"
void ObjectInit(windows_ptr ptr,int kind,int x,int y,int move_x,int move_y,
char *caption,int fontcolor,int backcolor,int status,char *hotkey,
int backsave,void (far *windows),int active)
{
    ptr->kind=kind; //初始化对象类型
    ptr->top.x=x;   //初始化界面对象的起始横坐标
    ptr->top.y=y;   //初始化界面对象的起始纵坐标
    ptr->move.x=move_x; //初始化界面对象的偏移横坐标
    ptr->move.y=move_y; //初始化界面对象的偏移纵坐标
    ptr->caption=caption; //初始化对象的标题
    ptr->fontcolor=fontcolor; //初始化对象字体的颜色
    ptr->backcolor=backcolor; //初始化对象背景的颜色
    ptr->status=staus;  //初始化对象形态状态
    ptr->hotkey=hotkey;  //初始化对象的热键
    ptr->backsave=backsave;  //初始化对象界面是否要保存背景
    if(backsave==1)  //对象要保存背景,初始化对象背景图象的内存空间
        ptr->backgroud=(char far *)malloc((move_x+1)*(move_y+1)+1);
    ptr->active=active;   //初始对象的激活状态
}

⌨️ 快捷键说明

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