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

📄 display.h

📁 Dialogic数字板卡示例程序
💻 H
字号:
// Header file for display.c

/* Our GUI is quite simple.  Because of this, we can afford to redraw
 * the entire main window every time something happens on our Dialogic
 * boards.  Were we more GUI oriented, we should only redraw regions
 * which need to be redrawn.
 */

#include <windows.h>

/***************************************************************************
 *        NAME: disp_init(hwnd)
 *      INPUTS: none
 * DESCRIPTION: Initialize display for this program
 *************************************************************************/
void disp_init(HWND hwnd);


/***************************************************************************
 *        NAME: disp_status(hwnd, chnum, stringp)
 *      INPUTS: chno - channel number (1 - 12)
 *              stringp - pointer to string to display 
 * DESCRIPTION: display the current activity on the channel in window 2
 *              (the string pointed to by stringp) using chno as a Y offset
 *************************************************************************/
void disp_status(HWND hwnd, int chnum, char *strinp);


/***************************************************************************
 *        NAME: disp_status(hwnd, chnum, stringp)
 *      INPUTS: chno - channel number (1 - 12)
 *              stringp - pointer to string to display 
 * DESCRIPTION: display the current activity on the channel in window 2
 *              (the string pointed to by stringp) using chno as a Y offset
 *************************************************************************/
void disp_status(HWND hwnd, int chnum, char *stringp);


/***************************************************************************
 *        NAME: disp_msg(hwnd, stringp)
 *      INPUTS: stringp - pointer to string to display.
 * DESCRIPTION: display the string passed, in the primary message area of win2
 *************************************************************************/
void disp_msg(HWND hwnd, char *stringp);


/***************************************************************************
 *        NAME: disp_err(hwnd, thr_num, chfd )
 * DESCRIPTION: This routine prints error information.
 *      INPUTS: thr_num - thread number
 *		chfd - device descriptor
 *     OUTPUTS: The error code and error message are displayed
 *    CAUTIONS: none. 
 ************************************************************************/
void disp_err(HWND hwnd, int thr_num, int chfd);

/***************************************************************************
 *        NAME: disp_clear(chnum)
 *      INPUTS: hwnd - main window handle
 * DESCRIPTION: clears the status area of the window
 *************************************************************************/
void disp_clear (HWND hwnd);

⌨️ 快捷键说明

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