t_infobar.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 94 行
H
94 行
/*****************************************************************
** **
** Copyright (C) 2004 Amlogic,Inc. **
** All rights reserved **
** Filename : t_infobar.h /Project:AVOS Control **
** Revision : 1.0 **
** **
*****************************************************************/
#ifndef _T_INFOBAR_H
#define _T_INFOBAR_H
#include "includes.h"
#include "aw_windows.h"
#define ITEM_DEFAULT 0x0
#define ITEM_DISABLE 0x1
#define ITEM_DISVISABLE 0x2
#define ITEM_UPDATE 0x4
#define ITEM_ON_SHOWING 0x8
#define FULL_BAR_ITEM_ONLY 0x1
#define HALF_BAR_ITEM_ONLY 0x2
#define SHORT_BAR_ITEM_ONLY 0x4
#define FULL_BAR_ITEM FULL_BAR_ITEM_ONLY
#define HALF_BAR_ITEM (FULL_BAR_ITEM_ONLY | HALF_BAR_ITEM_ONLY)
#define SHORT_BAR_ITEM (HALF_BAR_ITEM | SHORT_BAR_ITEM_ONLY)
#define BAR_DISABLE 0x1
#define BAR_DISVISABLE 0x2
#define BAR_PAINT_UPDATE_ITEM 0x4
#define BAR_FOCUSED 0x8
#define SHOW_FULL_BAR 0
#define SHOW_HALF_BAR 1
#define SHOW_SHORT_BAR 2
//bar item msg list
#define WM_T_BAR_ADD_ITEM (WM_CONTROL_USE + 0x1)
#define WM_T_BAR_GET_FIRST_ITEM (WM_CONTROL_USE + 0x2)
#define WM_T_BAR_GET_NEXT_ITEM (WM_CONTROL_USE + 0x3)
#define WM_T_BAR_ITEM_GET_FOCUS (WM_CONTROL_USE + 0x4)
#define WM_T_BAR_ITEM_LOSE_FOCUS (WM_CONTROL_USE + 0x5)
#define WM_T_BAR_SET_FIRST_ITEM (WM_CONTROL_USE + 0x6)
#define WM_T_BAR_SET_NEXT_ITEM (WM_CONTROL_USE + 0x7)
#define WM_T_PAINT_ITEM (WM_CONTROL_USE + 0x8)
#define WM_T_BAR_ITEM_SET_HIGHLIGHT (WM_CONTROL_USE + 0x9)
#define WM_T_BAR_ITEM_KEY_PRESS (WM_CONTROL_USE + 0xa)
#define WM_T_BAR_SET_BAR_TYPE (WM_CONTROL_USE + 0xb)
#define WM_T_BAR_PAINT_ITEM (WM_CONTROL_USE + 0xc)
typedef struct _rcabaritem *PTBARITEM ;
typedef struct _rcabaritem {
PTBARITEM next_item;
PTBARITEM prev_item;
INT32U bar_item_bmp;
INT32U bar_item_caption;
INT32U bar_item_hint ;
INT16U bar_item_bmp_type ;
INT16U bar_item_caption_type ;
INT16U bar_item_hint_type ;
INT16U bar_item_width ;
INT8U bar_caption_x ;
INT8U bar_caption_y ;
INT8U bar_item_id ;
INT8U bar_item_type ;
INT8S bar_item_status ;
INT32S (*OnKeyPress)(PHWND hwnd, INT32S key_value);
INT32S (*OnGetFocus)(PHWND hwnd, INT32S key_value);
INT32S (*OnLoseFocus)(PHWND hwnd, INT32S msg_para);
} TBARITEM, *PTBARITEM ;
typedef struct {
INT8S total_items ;
INT8S bar_status ;
INT8U bar_type ; //0 -- full, 1 -- half, 2 -- short
INT16U bar_item_start_x ;
INT16U bar_item_start_y ;
INT16U bar_item_height ;
INT16U full_bar_bk_bmp_type;
INT16U half_bar_bk_bmp_type;
INT16U short_bar_bk_bmp_type ;
INT32U full_bar_bk_bmp;
INT32U half_bar_bk_bmp;
INT32U short_bar_bk_bmp ;
DRAWINFO bar_hint_bk_info ;
DRAWINFO bar_hint_info ;
PTBARITEM bar_items;
PTBARITEM high_light_items ;
}TBAR,*PTBAR ;
INT32S AWRegisterTInfoBar(void) ;
#endif //_T_INFOBAR_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?