Mercurial > dwindows
comparison dw.h @ 22:6a246b3bb14f
Added tree widgets, fixed some delete event processing, fixed a layout bug
on OS/2 and Win32. Added another function to compat to deal with MSVC
runtime library conflicts.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 02 Aug 2001 09:57:21 +0000 |
parents | 81833f25b1aa |
children | d9e87e8bcf1d |
comparison
equal
deleted
inserted
replaced
21:c6e76b796b28 | 22:6a246b3bb14f |
---|---|
106 #define DW_LS_MULTIPLESEL LS_MULTIPLESEL | 106 #define DW_LS_MULTIPLESEL LS_MULTIPLESEL |
107 | 107 |
108 #define DW_LIT_NONE -1 | 108 #define DW_LIT_NONE -1 |
109 | 109 |
110 #define DW_MLE_CASESENSITIVE MLFSEARCH_CASESENSITIVE | 110 #define DW_MLE_CASESENSITIVE MLFSEARCH_CASESENSITIVE |
111 | |
112 #define DW_POINTER_ARROW SPTR_ARROW | |
113 #define DW_POINTER_CLOCK SPTR_WAIT | |
111 | 114 |
112 typedef struct _hpixmap { | 115 typedef struct _hpixmap { |
113 unsigned long width, height; | 116 unsigned long width, height; |
114 HDC hdc; | 117 HDC hdc; |
115 HPS hps; | 118 HPS hps; |
226 | 229 |
227 #define DW_LIT_NONE -1 | 230 #define DW_LIT_NONE -1 |
228 | 231 |
229 #define DW_MLE_CASESENSITIVE 1 | 232 #define DW_MLE_CASESENSITIVE 1 |
230 | 233 |
234 #define DW_POINTER_ARROW 32512 | |
235 #define DW_POINTER_CLOCK 32514 | |
236 | |
231 #define STATICCLASSNAME "STATIC" | 237 #define STATICCLASSNAME "STATIC" |
232 #define COMBOBOXCLASSNAME "COMBOBOX" | 238 #define COMBOBOXCLASSNAME "COMBOBOX" |
233 #define LISTBOXCLASSNAME "LISTBOX" | 239 #define LISTBOXCLASSNAME "LISTBOX" |
234 #define BUTTONCLASSNAME "BUTTON" | 240 #define BUTTONCLASSNAME "BUTTON" |
235 #define POPUPMENUCLASSNAME "POPUPMENU" | 241 #define POPUPMENUCLASSNAME "POPUPMENU" |
422 | 428 |
423 #define DW_LIT_NONE -1 | 429 #define DW_LIT_NONE -1 |
424 | 430 |
425 #define DW_MLE_CASESENSITIVE 1 | 431 #define DW_MLE_CASESENSITIVE 1 |
426 | 432 |
433 #define DW_POINTER_ARROW GDK_ARROW | |
434 #define DW_POINTER_CLOCK GDK_CLOCK | |
435 | |
427 #define DW_DESKTOP ((HWND)0) | 436 #define DW_DESKTOP ((HWND)0) |
428 #define HWND_DESKTOP ((HWND)0) | 437 #define HWND_DESKTOP ((HWND)0) |
429 | 438 |
430 typedef GtkWidget *HWND; | 439 typedef GtkWidget *HWND; |
431 typedef void *HAB; | 440 typedef void *HAB; |
526 #define DW_FILE_SAVE 1 | 535 #define DW_FILE_SAVE 1 |
527 | 536 |
528 #define BOXHORZ 0 | 537 #define BOXHORZ 0 |
529 #define BOXVERT 1 | 538 #define BOXVERT 1 |
530 | 539 |
540 #define DW_SCROLL_UP 0 | |
541 #define DW_SCROLL_DOWN 1 | |
542 #define DW_SCROLL_TOP 2 | |
543 #define DW_SCROLL_BOTTOM 3 | |
544 | |
531 #define DW_PIXMAP_WIDTH(x) (x ? x->width : 0) | 545 #define DW_PIXMAP_WIDTH(x) (x ? x->width : 0) |
532 #define DW_PIXMAP_HEIGHT(x) (x ? x->height : 0) | 546 #define DW_PIXMAP_HEIGHT(x) (x ? x->height : 0) |
533 | 547 |
534 #define DW_RGB_COLOR (0xFF000000) | 548 #define DW_RGB_COLOR (0xFF000000) |
535 #define DW_RGB_MASK (0x00FFFFFF) | 549 #define DW_RGB_MASK (0x00FFFFFF) |
567 HWND dw_groupbox_new(int type, int pad, char *title); | 581 HWND dw_groupbox_new(int type, int pad, char *title); |
568 HWND dw_mdi_new(unsigned long id); | 582 HWND dw_mdi_new(unsigned long id); |
569 HWND dw_bitmap_new(unsigned long id); | 583 HWND dw_bitmap_new(unsigned long id); |
570 HWND dw_bitmapbutton_new(char *text, unsigned long id); | 584 HWND dw_bitmapbutton_new(char *text, unsigned long id); |
571 HWND dw_container_new(unsigned long id); | 585 HWND dw_container_new(unsigned long id); |
586 HWND dw_tree_new(unsigned long id); | |
572 HWND dw_text_new(char *text, unsigned long id); | 587 HWND dw_text_new(char *text, unsigned long id); |
573 HWND dw_status_text_new(char *text, unsigned long id); | 588 HWND dw_status_text_new(char *text, unsigned long id); |
574 HWND dw_mle_new(unsigned long id); | 589 HWND dw_mle_new(unsigned long id); |
575 HWND dw_entryfield_new(char *text, unsigned long id); | 590 HWND dw_entryfield_new(char *text, unsigned long id); |
576 HWND dw_entryfield_password_new(char *text, ULONG id); | 591 HWND dw_entryfield_password_new(char *text, ULONG id); |
606 void dw_window_disable(HWND handle); | 621 void dw_window_disable(HWND handle); |
607 void dw_window_enable(HWND handle); | 622 void dw_window_enable(HWND handle); |
608 void dw_window_capture(HWND handle); | 623 void dw_window_capture(HWND handle); |
609 void dw_window_release(void); | 624 void dw_window_release(void); |
610 void dw_window_reparent(HWND handle, HWND newparent); | 625 void dw_window_reparent(HWND handle, HWND newparent); |
626 void dw_window_pointer(HWND handle, int pointertype); | |
611 unsigned int dw_mle_import(HWND handle, char *buffer, int startpoint); | 627 unsigned int dw_mle_import(HWND handle, char *buffer, int startpoint); |
612 void dw_mle_export(HWND handle, char *buffer, int startpoint, int length); | 628 void dw_mle_export(HWND handle, char *buffer, int startpoint, int length); |
613 void dw_mle_query(HWND handle, unsigned long *bytes, unsigned long *lines); | 629 void dw_mle_query(HWND handle, unsigned long *bytes, unsigned long *lines); |
614 void dw_mle_delete(HWND handle, int startpoint, int length); | 630 void dw_mle_delete(HWND handle, int startpoint, int length); |
615 void dw_mle_clear(HWND handle); | 631 void dw_mle_clear(HWND handle); |
624 void dw_spinbutton_set_limits(HWND handle, long upper, long lower); | 640 void dw_spinbutton_set_limits(HWND handle, long upper, long lower); |
625 void dw_entryfield_set_limit(HWND handle, ULONG limit); | 641 void dw_entryfield_set_limit(HWND handle, ULONG limit); |
626 long dw_spinbutton_query(HWND handle); | 642 long dw_spinbutton_query(HWND handle); |
627 int dw_checkbox_query(HWND handle); | 643 int dw_checkbox_query(HWND handle); |
628 void dw_checkbox_set(HWND handle, int value); | 644 void dw_checkbox_set(HWND handle, int value); |
645 HWND dw_tree_insert(HWND handle, char *title, unsigned long icon, HWND parent); | |
629 int dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator); | 646 int dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator); |
630 unsigned long dw_icon_load(unsigned long module, unsigned long id); | 647 unsigned long dw_icon_load(unsigned long module, unsigned long id); |
631 void dw_icon_free(unsigned long handle); | 648 void dw_icon_free(unsigned long handle); |
632 void *dw_container_alloc(HWND handle, int rowcount); | 649 void *dw_container_alloc(HWND handle, int rowcount); |
633 void dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data); | 650 void dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data); |
651 void dw_container_set_column_width(HWND handle, int column, int width); | |
634 void dw_container_set_row_title(void *pointer, int row, char *title); | 652 void dw_container_set_row_title(void *pointer, int row, char *title); |
635 void dw_container_insert(HWND handle, void *pointer, int rowcount); | 653 void dw_container_insert(HWND handle, void *pointer, int rowcount); |
636 void dw_container_clear(HWND handle); | 654 void dw_container_clear(HWND handle); |
655 void dw_container_delete(HWND handle, int rowcount); | |
637 void dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight); | 656 void dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight); |
638 char *dw_container_query_start(HWND handle, unsigned long flags); | 657 char *dw_container_query_start(HWND handle, unsigned long flags); |
639 char *dw_container_query_next(HWND handle, unsigned long flags); | 658 char *dw_container_query_next(HWND handle, unsigned long flags); |
659 void dw_container_scroll(HWND handle, int direction, long rows); | |
640 int dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count); | 660 int dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count); |
641 void dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data); | 661 void dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data); |
642 void dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon); | 662 void dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon); |
643 int dw_screen_width(void); | 663 int dw_screen_width(void); |
644 int dw_screen_height(void); | 664 int dw_screen_height(void); |