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

📄 uiinfo_box.h

📁 嵌入工linux开发的源码
💻 H
字号:
#ifndef _GUI_INFO_BOX_
#define _GUI_INFO_BOX_

#include <typedefine.h>

//style start
#define GUI_RUNTIME_NON_CLOCK           0x01    // 时间(分AM & PM)
#define GUI_RUNTIME_NON_SOLAR_DAY       0x02    // 日期(阳历)
#define GUI_RUNTIME_NON_LUNAR_DAY       0x04    // 日期(农历)
#define GUI_RUNTIME_NON_WEEK            0x08    // 星期
#define GUI_RUNTIME_NON_BATTERY_REMAIN  0x10    // 剩馀电量

#define GUI_RUNTIME_BORDER          0x20    //实线边框
#define GUI_RUNTIME_HATCH           0x40    //虚线边框
#define GUI_RUNTIME_INVERT          0x80    //是否反显 
//end


#define SYSINFO_NORMAL_DISPLAY       0
#define SYSINFO_INVERT_DISPLAY       1

#define GUI_RUNTIME_MAX_STYLE_NO     5
#define BATTERY_MAX                  3

typedef struct tagGuiSysInfoBox
{
	struct tagGuiControl base ;
	
	//now status
	WORD Cur_Class;
	WORD Dis_Normal_Invert;
}TGuiSysInfoBox,*pGuiSysInfoBox;

/*********************************************************************/
//para: info box coordinate and style
//dest: create handle
//return:
//fail:   NULL
//sucess: return info box handle
/*********************************************************************/
DLL_EXP(HNDL) guiInfoBox_Create( WORD left, WORD top,WORD right,WORD bottom,WORD style) ;

/*********************************************************************/
//para: info box handle
//dest: delete the info box
//return:
//fail:   STATUS_ERR
//sucess: STATUS_OK
/*********************************************************************/
DLL_EXP(STATUS) guiInfoBox_Delete( HNDL handle );

/*********************************************************************/
//para: info box handle
//dest: show the info box
//return:
//fail:   STATUS_ERR
//sucess: STATUS_OK
/*********************************************************************/
DLL_EXP(STATUS) guiInfoBox_Show( HNDL handle );

/*********************************************************************/
//para: void
//dest: window thread would call this function to modify the content 
//      of the topest window's system info. box.
//return:void
/*********************************************************************/
DLL_EXP(void) sysInfoBoxEventHandling(void) ;

#endif

⌨️ 快捷键说明

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