Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
89:ec311fe773da | 90:eeb98f881663 |
---|---|
18 #define SIZESTATIC 0 | 18 #define SIZESTATIC 0 |
19 #define SIZEEXPAND 1 | 19 #define SIZEEXPAND 1 |
20 | 20 |
21 #define SPLITBAR_WIDTH 3 | 21 #define SPLITBAR_WIDTH 3 |
22 #define BUBBLE_HELP_MAX 256 | 22 #define BUBBLE_HELP_MAX 256 |
23 | |
24 typedef struct _user_data | |
25 { | |
26 struct _user_data *next; | |
27 void *data; | |
28 char *varname; | |
29 } UserData; | |
23 | 30 |
24 #if defined(__OS2__) || defined(__EMX__) | 31 #if defined(__OS2__) || defined(__EMX__) |
25 #define INCL_DOS | 32 #define INCL_DOS |
26 #define INCL_WIN | 33 #define INCL_WIN |
27 #define INCL_GPI | 34 #define INCL_GPI |
117 | 124 |
118 #define DW_OS2_NEW_WINDOW 1 | 125 #define DW_OS2_NEW_WINDOW 1 |
119 | 126 |
120 typedef struct _window_data { | 127 typedef struct _window_data { |
121 PFNWP oldproc; | 128 PFNWP oldproc; |
129 UserData *root; | |
122 HWND clickdefault; | 130 HWND clickdefault; |
123 ULONG flags; | 131 ULONG flags; |
124 void *data; | 132 void *data; |
125 } WindowData; | 133 } WindowData; |
126 | 134 |
270 int vcenter; | 278 int vcenter; |
271 HWND clickdefault; | 279 HWND clickdefault; |
272 HBRUSH hbrush; | 280 HBRUSH hbrush; |
273 char fontname[128]; | 281 char fontname[128]; |
274 WNDPROC pOldProc; | 282 WNDPROC pOldProc; |
283 UserData *root; | |
275 } ColorInfo; | 284 } ColorInfo; |
276 | 285 |
277 typedef struct _notebookpage { | 286 typedef struct _notebookpage { |
278 ColorInfo cinfo; | 287 ColorInfo cinfo; |
279 TC_ITEM item; | 288 TC_ITEM item; |
325 typedef struct _box { | 334 typedef struct _box { |
326 #if defined(__WIN32__) || defined(WINNT) | 335 #if defined(__WIN32__) || defined(WINNT) |
327 ColorInfo cinfo; | 336 ColorInfo cinfo; |
328 #elif defined(__OS2__) || defined(__EMX__) | 337 #elif defined(__OS2__) || defined(__EMX__) |
329 PFNWP oldproc; | 338 PFNWP oldproc; |
339 UserData *root; | |
330 HWND hwndtitle; | 340 HWND hwndtitle; |
331 int titlebar; | 341 int titlebar; |
332 #endif | 342 #endif |
333 /* Number of items in the box */ | 343 /* Number of items in the box */ |
334 int count; | 344 int count; |
354 | 364 |
355 typedef struct _bubblebutton { | 365 typedef struct _bubblebutton { |
356 #if defined(__WIN32__) || defined(WINNT) | 366 #if defined(__WIN32__) || defined(WINNT) |
357 ColorInfo cinfo; | 367 ColorInfo cinfo; |
358 int checkbox; | 368 int checkbox; |
369 WNDPROC pOldProc; | |
370 #endif | |
371 #if defined(__OS2__) || defined(__EMX__) | |
372 PFNWP pOldProc; | |
373 UserData *root; | |
359 #endif | 374 #endif |
360 unsigned long id; | 375 unsigned long id; |
361 char bubbletext[BUBBLE_HELP_MAX]; | 376 char bubbletext[BUBBLE_HELP_MAX]; |
362 #if defined(__OS2__) || defined(__EMX__) | |
363 PFNWP pOldProc; | |
364 #else | |
365 WNDPROC pOldProc; | |
366 #endif | |
367 } BubbleButton; | 377 } BubbleButton; |
368 | 378 |
369 void dw_box_pack_start_stub(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); | 379 void dw_box_pack_start_stub(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); |
370 void dw_box_pack_end_stub(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); | 380 void dw_box_pack_end_stub(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); |
371 #else | 381 #else |
765 char *dw_file_browse(char *title, char *defpath, char *ext, int flags); | 775 char *dw_file_browse(char *title, char *defpath, char *ext, int flags); |
766 char *dw_user_dir(void); | 776 char *dw_user_dir(void); |
767 DWDialog *dw_dialog_new(void *data); | 777 DWDialog *dw_dialog_new(void *data); |
768 int dw_dialog_dismiss(DWDialog *dialog, void *result); | 778 int dw_dialog_dismiss(DWDialog *dialog, void *result); |
769 void *dw_dialog_wait(DWDialog *dialog); | 779 void *dw_dialog_wait(DWDialog *dialog); |
780 void dw_window_set_data(HWND window, char *dataname, void *data); | |
781 void *dw_window_get_data(HWND window, char *dataname); | |
770 #ifndef NO_SIGNALS | 782 #ifndef NO_SIGNALS |
771 void dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data); | 783 void dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data); |
772 void dw_signal_disconnect_by_window(HWND window); | 784 void dw_signal_disconnect_by_window(HWND window); |
773 void dw_signal_disconnect_by_data(HWND window, void *data); | 785 void dw_signal_disconnect_by_data(HWND window, void *data); |
774 void dw_signal_disconnect_by_name(HWND window, char *signame); | 786 void dw_signal_disconnect_by_name(HWND window, char *signame); |