【GTK】窗口停靠
摘要:
源码:#include <gdk/gdkcursor.h>
#include <gtk/gtk.h> #define TEST_W 100
#define TEST_H 80 gboolean drag = FALSE; // 只在左键按下时拖动窗体
gboolean hide = FALSE; // 只在左键按下时拖动窗体
int nX = 0;
int nY = 0;
GtkWidget *window; static gint button_press_event(GtkWidget * widget,GdkEventButton * event, gpointe 阅读全文
posted @ 2011-12-26 12:41 小田的专栏 阅读(1403) 评论(0) 推荐(0) 编辑