GTK之任意拖动窗口中的按钮
摘要:
一,任意拖动窗口中的按钮源码:#include <gtk/gtk.h>
GtkWidget *window;
GtkWidget *fixed;
GtkWidget *button;
gboolean drag = FALSE; // 只在左键按下时拖动窗体 gint nX = 0;
gint nY = 0; void destroy(GtkWidget *widget, gpointer *data)
{ gtk_main_quit();
} static gint button_press_event(GtkWidget * widget,GdkEventButton *... 阅读全文
posted @ 2011-12-25 23:21 小田的专栏 阅读(1469) 评论(0) 推荐(0) 编辑