|
发表于 2006-12-23 10:33:28
|
显示全部楼层
跟一个窗口的创建方法一样
[code:1]
main()
{
GtkWidget *win1;
GtkWidget *win2;
GtkWidget *winn;
gtk_init(NULL,NULL);
win1 = gtk_window_new(GTK_WINDOW_TOPLEVEL);
win2 = gtk_window_new(GTK_WINDOW_TOPLEVEL);
winn = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize(win1,300,300);
gtk_widget_set_usize(win2,300,300);
gtk_widget_set_usize(winn,300,300);
gtk_widget_show_all(win1);
gtk_widget_show_all(win2);
gtk_widget_show_all(winn);
gtk_main();
}
[/code:1] |
|