本帖最后由 judejie83 于 2014-3-12 12:27 编辑
修改方法:1 使用GUIBuilder.exe 制作 一个对话框,并保存为.c文件 WindowDLG.c 保存在:\STM32F429I-Discovery_FW_V1.0.1\Projects\Demonstration\Core\Demo
2 void DEMO_MainMenu(void) 函数中的;
hIcon = ICONVIEW_CreateEx(0, 25, LCD_GetXSize(), LCD_GetYSize()- 26, WM_GetDesktopWindowEx(1), WM_CF_SHOW | WM_CF_HASTRANS ,0 ,'0', 95, 65);// 把图片大小修改小些
3 extern void DEMO_Cpu(WM_HWIN hWin);
extern void CreateWindow(); //增加 createWindow 是前面生成的:WindowDLG.c 中的函数
4 static const BITMAP_ITEM _aBitmapItem[] = {
{&bmmultimedia, "Video Player" , "Launch MPJPEG video"},
{&bmimage, "Image Browser" , "Browse Images"},
{&bmclock, "Clock/Calendar" , "Clock settings"},
{&bmgame, "Game" , "Launch Reversi game"},
{&bmcpu, "Perfomance" , "Show CPU performance"},
{&bminfo, "System Info" , "Get System Information"},
{&bmimage, "Jude Test" , "jude_ MPJPEG video"}, //没有生成自己的图片。直接有的前面的图片
};
static void (* _apModules[])( WM_HWIN hWin) =
{
DEMO_Video,
DEMO_Image,
DEMO_Clock,
DEMO_Game,
DEMO_Cpu,
DEMO_SystemInfo,
CreateWindow,
};
|