42 lines
674 B
C
42 lines
674 B
C
#include "main_inc.h"
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include "main_inc.h"
|
|
#include "mywin_user_calendar.h"
|
|
|
|
|
|
|
|
|
|
char g_test_str[]="hello world";
|
|
|
|
//主函数
|
|
int my_main (void *ptr)
|
|
{
|
|
global_init(ptr);
|
|
global_run_start();
|
|
printf("%s\n", g_test_str);
|
|
|
|
//防止多次重复打开
|
|
WIN_WindowStruct *win=0;
|
|
if(win=WIN_GetWinByTitle(0,"calendar"),win==0)
|
|
{
|
|
WIN_WindowStruct *base=WIN_GetWinByTitle(0,"home" );
|
|
win=(WIN_WindowStruct *)CALENDAR_SelectDate(base);
|
|
WIN_SetWinTitle(win,"calendar");
|
|
}
|
|
else
|
|
{
|
|
WIN_SetChidWinTop(win->baseWin,win);
|
|
WIN_ShowWindow(win);
|
|
}
|
|
global_run_exit();
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
//定义app信息
|
|
APP_INFO("日历",APP_TYPE_HOLD,512,20);
|
|
|
|
|