|
假定$(SDK)为MT6225工程所在在目录(即make2.pl所在的目录),下的步骤将向你展示一个非常有趣且灵活的皮肤更换器.
1. 将附件解压
2. 将附件解压后中的Profile.ini, MODISUI.DLL, MODISUI.LIB 拷贝到$(SDK)\MODIS\MODIS下
3. 将附件解压后中的mask.bmp, skin.bmp拷贝到$(SDK)\MODIS\MODIS\Skins\240x320下
4. 将$(SDK)\make下的primary makefile中的MAIN_LCD_SIZE = 240X320
5. 在W32_winmain.c中的include文件之后,加入下行:
#pragma comment(lib,"ModisUI.lib")
__declspec(dllimport)
void AutoBootSimulator
(
void (*w32_key_detect_ind_callback)(unsigned char, unsigned char),
void (*w32_screen_init_callback)(HWND, HINSTANCE),
void (*w32_keydown_by_mouse_callback)(HWND, int, int,int,int),
void (*w32_keyup_by_mouse_callback)(HWND,int, int, int),
void (*w32_keydown_by_shortcut_callback)(HWND, int),
void (*w32_keyup_by_shortcut_callback)(HWND, unsigned int),
void (*w32_mouse_move_enable_callback)(HWND, int, int, int, int),
int (*w32_push_input_into_editor_component)(char *, int),
void (*w32_draw_main_bitmap_callback)(HDC),
void (*w32_update_screen_callback)(void),
void (*w32_TASK_Initialization_callback)(void),
void (*w32_ReadKeyProfile_callback)(char [], HWND),
void (*w32_ResetKeyMemory_callback)(void),
void (*w32_dspl_init_callback)(void),
void (*w32_timer_callback)(int),
BOOL (*w32_msg_pretranslate_callback)(MSG*),
void (*w32_vibrate_by_move_callback)(unsigned char),
char* (*w32_exec_func_callback)(unsigned int) //1,implies get version,2 implies set idle screen
);
6. 将W32_winmain.c中的函数MtkWinMainStart定义实现当中的MoDisUIDllStart名称换成AutoBootSimulator
7. 编译MODIS, 如果不能执行, 请将附件解压后当中的mfc71d.dll, msvcr71d.dll拷贝到$(SDK)\MODIS\MODIS下
【文件名】:09315@52RD_SDK.rar
【格 式】:rar
【大 小】:1526K
【简 介】:
【目 录】:
|
|