diff dw.h @ 90:eeb98f881663

Committed the dw_window_set/get_data() changes from the FX tree.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 22 Apr 2002 08:34:35 +0000
parents 58d8139fe0a2
children 553f3b4f8b5b
line wrap: on
line diff
--- a/dw.h	Fri Apr 19 17:52:38 2002 +0000
+++ b/dw.h	Mon Apr 22 08:34:35 2002 +0000
@@ -21,6 +21,13 @@
 #define SPLITBAR_WIDTH 3
 #define BUBBLE_HELP_MAX 256
 
+typedef struct _user_data
+{
+	struct _user_data *next;
+	void              *data;
+	char              *varname;
+} UserData;
+
 #if defined(__OS2__) || defined(__EMX__)
 #define INCL_DOS
 #define INCL_WIN
@@ -119,6 +126,7 @@
 
 typedef struct _window_data {
 	PFNWP oldproc;
+	UserData *root;
 	HWND clickdefault;
 	ULONG flags;
 	void *data;
@@ -272,6 +280,7 @@
 	HBRUSH hbrush;
 	char fontname[128];
 	WNDPROC pOldProc;
+	UserData *root;
 } ColorInfo;
 
 typedef struct _notebookpage {
@@ -327,6 +336,7 @@
 	ColorInfo cinfo;
 #elif defined(__OS2__) || defined(__EMX__)
 	PFNWP oldproc;
+	UserData *root;
 	HWND hwndtitle;
 	int titlebar;
 #endif
@@ -356,14 +366,14 @@
 #if defined(__WIN32__) || defined(WINNT)
 	ColorInfo cinfo;
 	int checkbox;
+	WNDPROC pOldProc;
+#endif
+#if defined(__OS2__) || defined(__EMX__)
+	PFNWP pOldProc;
+	UserData *root;
 #endif
 	unsigned long id;
 	char bubbletext[BUBBLE_HELP_MAX];
-#if defined(__OS2__) || defined(__EMX__)
-	PFNWP pOldProc;
-#else
-	WNDPROC pOldProc;
-#endif
 } BubbleButton;
 
 void dw_box_pack_start_stub(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad);
@@ -767,6 +777,8 @@
 DWDialog *dw_dialog_new(void *data);
 int dw_dialog_dismiss(DWDialog *dialog, void *result);
 void *dw_dialog_wait(DWDialog *dialog);
+void dw_window_set_data(HWND window, char *dataname, void *data);
+void *dw_window_get_data(HWND window, char *dataname);
 #ifndef NO_SIGNALS
 void dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data);
 void dw_signal_disconnect_by_window(HWND window);