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

📄 winpffin.c

📁 详细介绍了一篇关于pci开发的接口芯片
💻 C
字号:
/*  CXL - Copyright (c) 1987-1989 by Mike Smedley - All Rights Reserved  */
/*  WINPFFIN.C  - finds a field's record using it's window coordinates  */

#include "cxlwin.h"

struct _field_t *winpffind(int wrow,int wcol)
{
    struct _field_t *test;

    /* check for active window */
    if(!_winfo.total) {
        _winfo.errno=W_NOACTIVE;
        return(NULL);
    }

    /* check for existance of a form */
    if(_winfo.active->form==NULL) {
        _winfo.errno=W_NOFRMDEF;
        return(NULL);
    }

    /* scan back through linked list of fields searching for the field */
    /* that begins at the same window coordinates as those given       */
    for(test=_winfo.active->form->field;test!=NULL;test=test->prev)
        if(test->wrow==wrow&&test->wcol==wcol) break;

    /* return to caller */
    _winfo.errno=((test==NULL)?W_NOTFOUND:W_NOERROR);
    return(test);
}

⌨️ 快捷键说明

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