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

📄 cb_dicapi.c

📁 利用micorwindows实现英英词典 此为:底层操作api
💻 C
字号:
/*-------------------------------------------------** $RCSfile$* $Date$* $Author$* $Log$* Function	:* Usage         :* Version	:* Return Code   :* Revision      :* Remark        :*--------------------------------------------------*/#pragma far_pid_on#pragma far_pic_on#include "cb_dic/cb_dicengine.h"/**********************************************Func:	 得到API版本*In:*Out:	 API版本*I/O:*Modify:*Return:*Author: **********************************************/char *cb_dica_get_version( ){	return( "[cb_dica]$Date$ Ver=$Revision$" ); }/**********************************************Func:	 初始化cb辞典的一些系统信息.*In:	*Out:	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT8 cba_init( void ){	return	cbe_init( );}/**********************************************Func:	 销毁cb辞典的一些系统信息.*In:	*Out:	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT8 cba_destroy( void ){	return	cbe_destroy( );}/**********************************************Func:	 设置一屏要显示多少条记录.*In:	 num -> 一屏要显示的记录数目*Out:	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT8 cba_set_displistnum( const UINT8 num ){	return	cbe_set_displistnum( num );}/**********************************************Func:	 history:得到一屏记录.*In:	 num -> 所翻的屏数		CB_GET_UP		获取上一屏		CB_CUR_SCREEN		获取当前屏		CB_GET_DOW		获取下一屏		CB_HOME_SCREEN		获取第一屏		CB_END_SCREEN		获取最后一屏	 type -> CB_SCROLL_SCREEN	翻屏		CB_SCROLL_LINE		翻行*Out:	 *list -> 结构体数组指针,用于存放返回内容信息*I/O:*Modify:*Return: 高字节返回个数	 低字节返回 ->	CB_RTN_ERROR	--> 失败			CB_RTN_NOLR	--> 左、右标志无效			CB_RTN_LNOR	--> 左标志有效,右标志无效				CB_RTN_RNOL	--> 左标志无效,右标志有效			CB_RTN_LR	--> 左、右标志有效*Author: **********************************************/INT32 cba_his_get_displist( HIS_GUI_MAIN *p_main, CB_WORD_DATA *list, const INT8 num, const INT8 type ){	return	cbe_his_get_displist( p_main, list, num, type );}/**********************************************Func:	 得到一屏记录.*In:	 num -> 所翻的屏数		CB_GET_UP		获取上一屏		CB_CUR_SCREEN		获取当前屏		CB_GET_DOW		获取下一屏		CB_HOME_SCREEN		获取第一屏		CB_END_SCREEN		获取最后一屏	 type -> CB_SCROLL_SCREEN	翻屏		CB_SCROLL_LINE		翻行*Out:	 *list -> 结构体数组指针,用于存放返回内容信息*I/O:*Modify:*Return: 高字节返回个数	 低字节返回 ->	CB_RTN_ERROR	--> 失败			CB_RTN_NOLR	--> 左、右标志无效			CB_RTN_LNOR	--> 左标志有效,右标志无效				CB_RTN_RNOL	--> 左标志无效,右标志有效			CB_RTN_LR	--> 左、右标志有效*Author: **********************************************/INT32 cba_get_displist( CB_WORD_DATA *list, const INT8 num, const INT8 type ){	return	cbe_get_displist( list, num, type );}/**********************************************Func:	 History:get the word detail*In:	 the id of  word*Out:	 *word_detail -> 保存单词的详情.	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT8 cba_get_his_detail( CB_WORD_DETAIL *word_detail,  const INT32 record_id ,INT8 fancha_flag){	return cbe_get_his_detail( word_detail, record_id, fancha_flag);}/**********************************************Func:	 new word:get the word detail*In:	 the id of  word*Out:	 *word_detail -> 保存单词的详情.	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT32 cba_get_nw_detail( CB_WORD_DETAIL *word_detail,  const INT32 record_id ,INT8 fancha_flag){	return cbe_get_nw_detail( word_detail, record_id, fancha_flag);}/**********************************************Func:	 根据当前屏所选择的记录的逻辑ID得到记录的详情.*In:	 logic_id -> 当前单词的逻辑ID.*Out:	 *word_detail -> 保存单词的详情.	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT8 cba_get_detail( CB_WORD_DETAIL *word_detail, const INT8 logic_id ,INT8 fancha_flag){	return cbe_get_detail(word_detail, logic_id, fancha_flag);}/*************************************************************Func:	 Get the example data by example id*In:	 *Out:	 *I/O:*Modify:*Return: *Author: **************************************************************/void cba_get_exam(UINT cur_id,UCHAR* exam_buf){	cbe_get_exam(cur_id,exam_buf);}/**********************************************Func:	 Search the most match word*In:	 input_word -> input*Out:	 *I/O:*Modify:*Return: success -> CB_RTN_OK	 fail	 -> CB_RTN_ERROR*Author: **********************************************/INT8 cba_set_search( char *input_word ){	return	cbe_set_search( input_word );}/*****************************************************************func:	 history num*in:	*out:	 *i/o:*modify:*return: the count of history record*author: ******************************************************************/INT8 cba_his_rec_cnt( void ){	return cbe_his_rec_cnt( );}/*****************************************************************func:	 new word num*in:	*out:	 *i/o:*modify:*return: the count of history record*author: ******************************************************************/INT8 cba_to_nw_db( INT32 ID ){	return cbe_to_nw_db (ID);}/*****************************************************************func:	 new word num*in:	*out:	 *i/o:*modify:*return: the count of history record*author: ******************************************************************/INT32 cba_get_nw_record_num( ){	return cbe_get_nw_record_num( );}/**********************************************Func:	 new word: get one screen of group*In:	 num -> 所翻的屏数		CB_GET_UP		获取上一屏		CB_CUR_SCREEN		获取当前屏		CB_GET_DOW		获取下一屏		CB_HOME_SCREEN		获取第一屏		CB_END_SCREEN		获取最后一屏	 type -> CB_SCROLL_SCREEN	翻屏		CB_SCROLL_LINE		翻行*Out:	 *list -> 结构体数组指针,用于存放返回内容信息*I/O:*Modify:*Return: 高字节返回个数	 低字节返回 ->	CB_RTN_ERROR	--> 失败			CB_RTN_NOLR	--> 左、右标志无效			CB_RTN_LNOR	--> 左标志有效,右标志无效				CB_RTN_RNOL	--> 左标志无效,右标志有效			CB_RTN_LR	--> 左、右标志有效*Author: **********************************************/INT32 cba_nw_get_displist( NW_GUI_MAIN *p_nw_main, CB_WORD_DATA *p_list, const INT8 num, INT8 type ){	return	cbe_nw_get_displist( p_nw_main, p_list, num, type );}#pragma far_pic_off#pragma far_pid_off

⌨️ 快捷键说明

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