uiinfo_box.h

来自「一个PDA GUI系统的源码」· C头文件 代码 · 共 71 行

H
71
字号
#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 + =
减小字号Ctrl + -
显示快捷键?