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

📄 sms.c

📁 MTK的短信接口API
💻 C
字号:

S32 text_x1,text_y1,text_x2,text_y2;
text_x1=10;
text_x2=230;
text_y1=20;
text_y2=300;
gdi_handle my_layer;
gdi_handle base_layer;


MMI_BOOL mmi_msg_my_app_touch_down(mmi_pen_point_struct point)
{
	S32 pos_x=point.x,pos_y=point.y;
	 MMI_BOOL ret = MMI_FALSE;


	flag=0;
	if(pos_x>text_x1&&pos_y>text_y1&&pos_x<text_x2&&pos_y<text_y2)
		{
		    ret = MMI_TRUE;
		    flag=1;
		}	
return ret; 
}
MMI_BOOL mmi_msg_my_app_touch_up(mmi_pen_point_struct point)
{
	S32 pos_x=point.x,pos_y=point.y;
 	 MMI_BOOL ret = MMI_TRUE;
	if(flag==1)
		{
		if(pos_x>text_x1&&pos_y>text_y1&&pos_x<text_x2&&pos_y<text_y2)
			{
				mmi_msg_entry_inbox_msg();
			}
		}
return ret;
}

//入口函数
void mmi_msg_my_app()
{

	UI_filled_area filler_area={0};

	UI_filled_area filler_button={0};


	filler_area.flags=UI_FILLED_AREA_TYPE_COLOR;
	filler_area.c=UI_COLOR_BLACK;	
	filler_button.flags=UI_FILLED_AREA_TYPE_COLOR;
	filler_button.c=UI_COLOR_BLACK;	

	EntryNewScreen(SCR_ID_MSG_NEW_MZ,mmi_myapp_exit,mmi_msg_my_app,NULL);
	SetMessagesCurrScrnID(SCR_ID_MSG_NEW_MZ);
  GetCurrEndKeyDownHandler();


	
	gui_lock_double_buffer();
	entry_full_screen();
	gdi_layer_create(0,0,UI_device_width-1,UI_device_height-1,&my_layer);
	gdi_layer_set_active(my_layer);
	gdi_layer_clear(GDI_COLOR_BLUE);
	gdi_layer_set_source_key(TRUE,GDI_COLOR_BLUE);
	gdi_layer_set_opacity(TRUE,200);


		gui_draw_filled_area(10,20,230,300,&filler_area);

     
	gdi_layer_get_base_handle(&base_layer);
	gdi_layer_set_active(base_layer);
	gdi_layer_set_blt_layer(base_layer,my_layer,NULL,NULL);


	gui_draw_filled_area(0,UI_device_height-25,UI_device_width,UI_device_height,&filler_button);
	change_left_softkey(STR_GLOBAL_REPLY, IMG_GLOBAL_OK);
	change_right_softkey(STR_GLOBAL_BACK,IMG_GLOBAL_BACK);

	show_softkey(MMI_LEFT_SOFTKEY);
	show_softkey(MMI_RIGHT_SOFTKEY);
  //中间按键
	gui_move_text_cursor(100,UI_device_height-25+2);
	gui_set_text_border_color(UI_COLOR_WHITE);
	gui_set_text_color(UI_COLOR_BLACK);
 	gui_print_bordered_text((UI_string_type)GetString(STR_GLOBAL_VIEW));


	wgui_register_category_screen_control_area_pen_handlers(mmi_msg_my_app_touch_down, MMI_PEN_EVENT_DOWN);
	wgui_register_category_screen_control_area_pen_handlers(mmi_msg_my_app_touch_up, MMI_PEN_EVENT_UP); 


	SetKeyHandler(mmi_msg_entry_inbox_msg, KEY_WAP, KEY_EVENT_UP);
	SetLeftSoftkeyFunction(mmi_msg_reply_msg_to_entry,KEY_EVENT_UP);
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);

	gui_unlock_double_buffer();
	gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1);
	
}

⌨️ 快捷键说明

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