使用GTK - 绘制按钮和消息框
#include gint count = 1;// 按下按钮时弹出响应框void on_button_clicked (GtkWidget *button, gpointer userdata){ GtkWidget* dialog; gchar buff[50]; sprintf(buff, "counter: %d", count); dialog = gtk