application/main.c

changeset 813
6d9066951cdb
parent 804
ce992dbfbc39
child 814
bcb3c7d486f3
equal deleted inserted replaced
812:29c19fcae088 813:6d9066951cdb
1123 1123
1124 #ifdef UI_WIN32 1124 #ifdef UI_WIN32
1125 1125
1126 void application_startup(UiEvent *event, void *data) { 1126 void application_startup(UiEvent *event, void *data) {
1127 UiObject *obj = ui_window("Test w32", NULL); 1127 UiObject *obj = ui_window("Test w32", NULL);
1128 1128 ui_show(obj);
1129 } 1129 }
1130 1130
1131 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { 1131 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
1132 ui_init("app1", 0, NULL); 1132 ui_init("app1", 0, NULL);
1133 ui_onstartup(application_startup, NULL); 1133 ui_onstartup(application_startup, NULL);

mercurial