Mercurial > dwindows
annotate template/dw.c @ 1127:ed7cbdc37a75
Widget GTK3 v/halign properties get set according to the sizing flags
during widget packing. This makes alignment the same as on other platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 30 Aug 2011 07:53:05 +0000 |
parents | 9ca5de2e59f8 |
children | e24e5a13ff2c |
rev | line source |
---|---|
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2 * Dynamic Windows: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3 * A GTK like GUI implementation template. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
4 * |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
5 * (C) 2011 Brian Smith <brian@dbsoft.org> |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
6 * (C) 2011 Mark Hessling <mark@rexx.org> |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
7 * |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
8 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
9 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
10 #include "dw.h" |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
11 #include <stdlib.h> |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
12 #include <string.h> |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
13 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
14 /* Implement these to get and set the Box* pointer on the widget handle */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
15 void *_dw_get_window_pointer(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
16 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
17 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
18 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
19 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
20 void _dw_set_window_pointer(HWND handle, Box *box) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
21 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
22 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
23 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
24 /* This function calculates how much space the widgets and boxes require |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
25 * and does expansion as necessary. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
26 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
27 int _resize_box(Box *thisbox, int *depth, int x, int y, int *usedx, int *usedy, |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
28 int pass, int *usedpadx, int *usedpady) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
29 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
30 int z, currentx = 0, currenty = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
31 int uymax = 0, uxmax = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
32 int upymax = 0, upxmax = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
33 /* Used for the SIZEEXPAND */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
34 int nux = *usedx, nuy = *usedy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
35 int nupx = *usedpadx, nupy = *usedpady; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
36 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
37 (*usedx) += (thisbox->pad * 2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
38 (*usedy) += (thisbox->pad * 2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
39 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
40 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
41 /* If there are containers which have built-in padding like |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
42 * groupboxes.. calculate the padding size and add it to the layout. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
43 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
44 if(thisbox->grouphwnd) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
45 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
46 char *text = dw_window_get_text(thisbox->grouphwnd); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
47 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
48 thisbox->grouppady = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
49 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
50 if(text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
51 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
52 dw_font_text_extents_get(thisbox->grouphwnd, 0, text, NULL, &thisbox->grouppady); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
53 dw_free(text); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
54 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
55 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
56 if(thisbox->grouppady) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
57 thisbox->grouppady += 3; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
58 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
59 thisbox->grouppady = 6; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
60 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
61 thisbox->grouppadx = 6; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
62 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
63 (*usedx) += thisbox->grouppadx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
64 (*usedpadx) += thisbox->grouppadx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
65 (*usedy) += thisbox->grouppady; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
66 (*usedpady) += thisbox->grouppady; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
67 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
68 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
69 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
70 for(z=0;z<thisbox->count;z++) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
71 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
72 if(thisbox->items[z].type == TYPEBOX) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
73 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
74 int initialx, initialy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
75 Box *tmp = (Box *)_dw_get_window_pointer(thisbox->items[z].hwnd); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
76 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
77 initialx = x - (*usedx); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
78 initialy = y - (*usedy); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
79 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
80 if(tmp) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
81 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
82 int newx, newy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
83 int nux = *usedx, nuy = *usedy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
84 int upx = *usedpadx + (tmp->pad*2), upy = *usedpady + (tmp->pad*2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
85 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
86 /* On the second pass we know how big the box needs to be and how |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
87 * much space we have, so we can calculate a ratio for the new box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
88 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
89 if(pass == 2) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
90 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
91 int deep = *depth + 1; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
92 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
93 _resize_box(tmp, &deep, x, y, &nux, &nuy, 1, &upx, &upy); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
94 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
95 tmp->upx = upx - *usedpadx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
96 tmp->upy = upy - *usedpady; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
97 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
98 newx = x - nux; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
99 newy = y - nuy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
100 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
101 tmp->width = thisbox->items[z].width = initialx - newx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
102 tmp->height = thisbox->items[z].height = initialy - newy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
103 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
104 tmp->parentxratio = thisbox->xratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
105 tmp->parentyratio = thisbox->yratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
106 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
107 tmp->parentpad = tmp->pad; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
108 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
109 /* Just in case */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
110 tmp->xratio = thisbox->xratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
111 tmp->yratio = thisbox->yratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
112 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
113 if(thisbox->type == DW_VERT) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
114 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
115 int tmppad = (thisbox->items[z].pad*2)+(tmp->pad*2)+tmp->grouppady; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
116 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
117 if((thisbox->items[z].width - tmppad)!=0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
118 tmp->xratio = ((float)((thisbox->items[z].width * thisbox->xratio)-tmppad))/((float)(thisbox->items[z].width-tmppad)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
119 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
120 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
121 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
122 if((thisbox->items[z].width-tmp->upx)!=0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
123 tmp->xratio = ((float)((thisbox->items[z].width * thisbox->xratio)-tmp->upx))/((float)(thisbox->items[z].width-tmp->upx)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
124 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
125 if(thisbox->type == DW_HORZ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
126 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
127 int tmppad = (thisbox->items[z].pad*2)+(tmp->pad*2)+tmp->grouppadx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
128 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
129 if((thisbox->items[z].height-tmppad)!=0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
130 tmp->yratio = ((float)((thisbox->items[z].height * thisbox->yratio)-tmppad))/((float)(thisbox->items[z].height-tmppad)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
131 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
132 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
133 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
134 if((thisbox->items[z].height-tmp->upy)!=0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
135 tmp->yratio = ((float)((thisbox->items[z].height * thisbox->yratio)-tmp->upy))/((float)(thisbox->items[z].height-tmp->upy)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
136 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
137 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
138 nux = *usedx; nuy = *usedy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
139 upx = *usedpadx + (tmp->pad*2); upy = *usedpady + (tmp->pad*2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
140 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
141 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
142 (*depth)++; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
143 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
144 _resize_box(tmp, depth, x, y, &nux, &nuy, pass, &upx, &upy); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
145 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
146 (*depth)--; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
147 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
148 newx = x - nux; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
149 newy = y - nuy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
150 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
151 tmp->minwidth = thisbox->items[z].width = initialx - newx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
152 tmp->minheight = thisbox->items[z].height = initialy - newy; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
153 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
154 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
155 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
156 if(pass > 1 && *depth > 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
157 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
158 if(thisbox->type == DW_VERT) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
159 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
160 int tmppad = (thisbox->items[z].pad*2)+(thisbox->parentpad*2)+thisbox->grouppadx; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
161 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
162 if((thisbox->minwidth-tmppad) == 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
163 thisbox->items[z].xratio = 1.0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
164 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
165 thisbox->items[z].xratio = ((float)((thisbox->width * thisbox->parentxratio)-tmppad))/((float)(thisbox->minwidth-tmppad)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
166 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
167 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
168 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
169 if(thisbox->minwidth-thisbox->upx == 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
170 thisbox->items[z].xratio = 1.0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
171 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
172 thisbox->items[z].xratio = ((float)((thisbox->width * thisbox->parentxratio)-thisbox->upx))/((float)(thisbox->minwidth-thisbox->upx)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
173 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
174 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
175 if(thisbox->type == DW_HORZ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
176 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
177 int tmppad = (thisbox->items[z].pad*2)+(thisbox->parentpad*2)+thisbox->grouppady; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
178 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
179 if((thisbox->minheight-tmppad) == 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
180 thisbox->items[z].yratio = 1.0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
181 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
182 thisbox->items[z].yratio = ((float)((thisbox->height * thisbox->parentyratio)-tmppad))/((float)(thisbox->minheight-tmppad)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
183 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
184 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
185 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
186 if(thisbox->minheight-thisbox->upy == 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
187 thisbox->items[z].yratio = 1.0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
188 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
189 thisbox->items[z].yratio = ((float)((thisbox->height * thisbox->parentyratio)-thisbox->upy))/((float)(thisbox->minheight-thisbox->upy)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
190 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
191 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
192 if(thisbox->items[z].type == TYPEBOX) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
193 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
194 Box *tmp = (Box *)_dw_get_window_pointer(thisbox->items[z].hwnd); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
195 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
196 if(tmp) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
197 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
198 tmp->parentxratio = thisbox->items[z].xratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
199 tmp->parentyratio = thisbox->items[z].yratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
200 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
201 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
202 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
203 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
204 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
205 thisbox->items[z].xratio = thisbox->xratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
206 thisbox->items[z].yratio = thisbox->yratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
207 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
208 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
209 if(thisbox->type == DW_VERT) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
210 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
211 int itemwidth = (thisbox->items[z].pad*2) + thisbox->items[z].width; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
212 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
213 if(itemwidth > uxmax) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
214 uxmax = itemwidth; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
215 if(thisbox->items[z].hsize != SIZEEXPAND) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
216 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
217 if(itemwidth > upxmax) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
218 upxmax = itemwidth; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
219 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
220 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
221 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
222 if(thisbox->items[z].pad*2 > upxmax) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
223 upxmax = thisbox->items[z].pad*2; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
224 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
225 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
226 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
227 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
228 if(thisbox->items[z].width == -1) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
229 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
230 /* figure out how much space this item requires */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
231 /* thisbox->items[z].width = */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
232 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
233 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
234 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
235 (*usedx) += thisbox->items[z].width + (thisbox->items[z].pad*2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
236 if(thisbox->items[z].hsize != SIZEEXPAND) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
237 (*usedpadx) += (thisbox->items[z].pad*2) + thisbox->items[z].width; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
238 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
239 (*usedpadx) += thisbox->items[z].pad*2; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
240 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
241 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
242 if(thisbox->type == DW_HORZ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
243 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
244 int itemheight = (thisbox->items[z].pad*2) + thisbox->items[z].height; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
245 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
246 if(itemheight > uymax) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
247 uymax = itemheight; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
248 if(thisbox->items[z].vsize != SIZEEXPAND) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
249 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
250 if(itemheight > upymax) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
251 upymax = itemheight; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
252 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
253 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
254 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
255 if(thisbox->items[z].pad*2 > upymax) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
256 upymax = thisbox->items[z].pad*2; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
257 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
258 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
259 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
260 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
261 if(thisbox->items[z].height == -1) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
262 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
263 /* figure out how much space this item requires */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
264 /* thisbox->items[z].height = */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
265 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
266 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
267 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
268 (*usedy) += thisbox->items[z].height + (thisbox->items[z].pad*2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
269 if(thisbox->items[z].vsize != SIZEEXPAND) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
270 (*usedpady) += (thisbox->items[z].pad*2) + thisbox->items[z].height; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
271 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
272 (*usedpady) += thisbox->items[z].pad*2; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
273 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
274 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
275 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
276 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
277 (*usedx) += uxmax; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
278 (*usedy) += uymax; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
279 (*usedpadx) += upxmax; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
280 (*usedpady) += upymax; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
281 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
282 currentx += thisbox->pad; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
283 currenty += thisbox->pad; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
284 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
285 if(thisbox->grouphwnd) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
286 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
287 currentx += 3; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
288 currenty += thisbox->grouppady - 3; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
289 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
290 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
291 /* The second pass is for expansion and actual placement. */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
292 if(pass > 1) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
293 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
294 /* Any SIZEEXPAND items should be set to uxmax/uymax */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
295 for(z=0;z<thisbox->count;z++) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
296 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
297 if(thisbox->items[z].hsize == SIZEEXPAND && thisbox->type == DW_VERT) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
298 thisbox->items[z].width = uxmax-(thisbox->items[z].pad*2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
299 if(thisbox->items[z].vsize == SIZEEXPAND && thisbox->type == DW_HORZ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
300 thisbox->items[z].height = uymax-(thisbox->items[z].pad*2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
301 /* Run this code segment again to finalize the sized after setting uxmax/uymax values. */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
302 if(thisbox->items[z].type == TYPEBOX) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
303 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
304 Box *tmp = (Box *)_dw_get_window_pointer(thisbox->items[z].hwnd); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
305 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
306 if(tmp) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
307 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
308 if(*depth > 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
309 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
310 float calcval; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
311 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
312 if(thisbox->type == DW_VERT) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
313 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
314 calcval = (float)(tmp->minwidth-((thisbox->items[z].pad*2)+(thisbox->pad*2))); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
315 if(calcval == 0.0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
316 tmp->xratio = thisbox->xratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
317 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
318 tmp->xratio = ((float)((thisbox->items[z].width * thisbox->xratio)-((thisbox->items[z].pad*2)+(thisbox->pad*2))))/calcval; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
319 tmp->width = thisbox->items[z].width; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
320 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
321 if(thisbox->type == DW_HORZ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
322 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
323 calcval = (float)(tmp->minheight-((thisbox->items[z].pad*2)+(thisbox->pad*2))); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
324 if(calcval == 0.0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
325 tmp->yratio = thisbox->yratio; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
326 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
327 tmp->yratio = ((float)((thisbox->items[z].height * thisbox->yratio)-((thisbox->items[z].pad*2)+(thisbox->pad*2))))/calcval; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
328 tmp->height = thisbox->items[z].height; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
329 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
330 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
331 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
332 (*depth)++; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
333 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
334 _resize_box(tmp, depth, x, y, &nux, &nuy, 3, &nupx, &nupy); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
335 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
336 (*depth)--; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
337 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
338 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
339 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
340 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
341 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
342 for(z=0;z<(thisbox->count);z++) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
343 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
344 int height = thisbox->items[z].height; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
345 int width = thisbox->items[z].width; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
346 int pad = thisbox->items[z].pad; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
347 HWND handle = thisbox->items[z].hwnd; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
348 int vectorx, vectory; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
349 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
350 /* When upxmax != pad*2 then ratios are incorrect. */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
351 vectorx = (int)((width*thisbox->items[z].xratio)-width); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
352 vectory = (int)((height*thisbox->items[z].yratio)-height); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
353 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
354 if(width > 0 && height > 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
355 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
356 char tmpbuf[100]; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
357 /* This is a hack to fix rounding of the sizing */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
358 if(*depth == 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
359 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
360 vectorx++; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
361 vectory++; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
362 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
363 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
364 /* If this item isn't going to expand... reset the vectors to 0 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
365 if(thisbox->items[z].vsize != SIZEEXPAND) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
366 vectory = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
367 if(thisbox->items[z].hsize != SIZEEXPAND) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
368 vectorx = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
369 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
370 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
371 /* Here you put your platform specific placement widget placement code */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
372 PlaceWidget(handle, currentx + pad, currenty + pad, |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
373 width + vectorx, height + vectory); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
374 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
375 /* If any special handling needs to be done... like diving into |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
376 * controls that have sub-layouts... like notebooks or splitbars... |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
377 * do that here. Figure out the sub-layout size and call _do_resize(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
378 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
379 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
380 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
381 if(thisbox->type == DW_HORZ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
382 currentx += width + vectorx + (pad * 2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
383 if(thisbox->type == DW_VERT) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
384 currenty += height + vectory + (pad * 2); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
385 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
386 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
387 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
388 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
389 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
390 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
391 /* This is a convenience function used in the window's resize event |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
392 * to relayout the controls in the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
393 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
394 void _do_resize(Box *thisbox, int x, int y) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
395 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
396 if(x != 0 && y != 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
397 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
398 if(thisbox) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
399 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
400 int usedx = 0, usedy = 0, depth = 0, usedpadx = 0, usedpady = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
401 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
402 _resize_box(thisbox, &depth, x, y, &usedx, &usedy, 1, &usedpadx, &usedpady); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
403 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
404 if(usedx-usedpadx == 0 || usedy-usedpady == 0) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
405 return; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
406 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
407 thisbox->xratio = ((float)(x-usedpadx))/((float)(usedx-usedpadx)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
408 thisbox->yratio = ((float)(y-usedpady))/((float)(usedy-usedpady)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
409 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
410 usedpadx = usedpady = usedx = usedy = depth = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
411 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
412 _resize_box(thisbox, &depth, x, y, &usedx, &usedy, 2, &usedpadx, &usedpady); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
413 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
414 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
415 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
416 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
417 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
418 * Runs a message loop for Dynamic Windows. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
419 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
420 void API dw_main(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
421 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
422 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
423 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
424 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
425 * Runs a message loop for Dynamic Windows, for a period of milliseconds. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
426 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
427 * milliseconds: Number of milliseconds to run the loop for. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
428 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
429 void API dw_main_sleep(int milliseconds) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
430 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
431 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
432 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
433 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
434 * Processes a single message iteration and returns. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
435 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
436 void API dw_main_iteration(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
437 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
438 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
439 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
440 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
441 * Cleanly terminates a DW session, should be signal handler safe. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
442 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
443 * exitcode: Exit code reported to the operating system. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
444 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
445 void API dw_exit(int exitcode) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
446 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
447 exit(exitcode); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
448 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
449 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
450 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
451 * Free's memory allocated by dynamic windows. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
452 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
453 * ptr: Pointer to dynamic windows allocated |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
454 * memory to be free()'d. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
455 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
456 void API dw_free(void *ptr) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
457 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
458 free(ptr); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
459 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
460 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
461 /* |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
462 * Returns a pointer to a static buffer which contains the |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
463 * current user directory. Or the root directory if it could |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
464 * not be determined. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
465 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
466 char *dw_user_dir(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
467 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
468 static char _user_dir[1024] = ""; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
469 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
470 if(!_user_dir[0]) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
471 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
472 char *home = getenv("HOME"); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
473 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
474 if(home) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
475 strcpy(_user_dir, home); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
476 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
477 strcpy(_user_dir, "/"); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
478 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
479 return _user_dir; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
480 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
481 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
482 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
483 * Displays a Message Box with given text and title.. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
484 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
485 * title: The title of the message box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
486 * flags: flags to indicate buttons and icon |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
487 * format: printf style format string. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
488 * ...: Additional variables for use in the format. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
489 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
490 * DW_MB_RETURN_YES, DW_MB_RETURN_NO, DW_MB_RETURN_OK, |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
491 * or DW_MB_RETURN_CANCEL based on flags and user response. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
492 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
493 int API dw_messagebox(char *title, int flags, char *format, ...) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
494 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
495 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
496 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
497 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
498 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
499 * Opens a file dialog and queries user selection. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
500 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
501 * title: Title bar text for dialog. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
502 * defpath: The default path of the open dialog. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
503 * ext: Default file extention. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
504 * flags: DW_FILE_OPEN or DW_FILE_SAVE. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
505 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
506 * NULL on error. A malloced buffer containing |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
507 * the file path on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
508 * |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
509 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
510 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
511 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
512 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
513 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
514 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
515 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
516 * Gets the contents of the default clipboard as text. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
517 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
518 * None. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
519 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
520 * Pointer to an allocated string of text or NULL if clipboard empty or contents could not |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
521 * be converted to text. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
522 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
523 char *dw_clipboard_get_text() |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
524 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
525 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
526 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
527 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
528 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
529 * Sets the contents of the default clipboard to the supplied text. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
530 * Parameters: |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
531 * str: Text to put on the clipboard. |
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
532 * len: Length of the text. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
533 */ |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
534 void dw_clipboard_set_text(char *str, int len) |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
535 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
536 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
537 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
538 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
539 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
540 * Allocates and initializes a dialog struct. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
541 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
542 * data: User defined data to be passed to functions. |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
543 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
544 * A handle to a dialog or NULL on failure. |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
545 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
546 DWDialog * API dw_dialog_new(void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
547 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
548 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
549 DWDialog *tmp = malloc(sizeof(DWDialog)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
550 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
551 if(tmp) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
552 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
553 tmp->eve = dw_event_new(); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
554 dw_event_reset(tmp->eve); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
555 tmp->data = data; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
556 tmp->done = FALSE; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
557 tmp->result = NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
558 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
559 return tmp; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
560 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
561 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
562 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
563 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
564 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
565 * Accepts a dialog struct and returns the given data to the |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
566 * initial called of dw_dialog_wait(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
567 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
568 * dialog: Pointer to a dialog struct aquired by dw_dialog_new). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
569 * result: Data to be returned by dw_dialog_wait(). |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
570 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
571 * DW_ERROR_NONE (0) on success. |
1007
870a95961b4a
Fix some of the documentation comments.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
988
diff
changeset
|
572 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
573 int API dw_dialog_dismiss(DWDialog *dialog, void *result) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
574 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
575 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
576 dialog->result = result; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
577 dw_event_post(dialog->eve); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
578 dialog->done = TRUE; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
579 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
580 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
581 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
582 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
583 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
584 * Accepts a dialog struct waits for dw_dialog_dismiss() to be |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
585 * called by a signal handler with the given dialog struct. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
586 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
587 * dialog: Pointer to a dialog struct aquired by dw_dialog_new). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
588 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
589 * The data passed to dw_dialog_dismiss(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
590 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
591 void * API dw_dialog_wait(DWDialog *dialog) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
592 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
593 void *tmp = NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
594 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
595 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
596 while(!dialog->done) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
597 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
598 dw_main_iteration(); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
599 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
600 dw_event_close(&dialog->eve); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
601 tmp = dialog->result; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
602 free(dialog); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
603 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
604 return tmp; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
605 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
606 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
607 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
608 * Create a new Box to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
609 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
610 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
611 * pad: Number of pixels to pad around the box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
612 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
613 * A handle to a box or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
614 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
615 HWND API dw_box_new(int type, int pad) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
616 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
617 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
618 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
619 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
620 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
621 * Create a new Group Box to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
622 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
623 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
624 * pad: Number of pixels to pad around the box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
625 * title: Text to be displayined in the group outline. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
626 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
627 * A handle to a groupbox window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
628 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
629 HWND API dw_groupbox_new(int type, int pad, char *title) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
630 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
631 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
632 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
633 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
634 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
635 * Create a new scrollable Box to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
636 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
637 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
638 * pad: Number of pixels to pad around the box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
639 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
640 * A handle to a scrollbox or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
641 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
642 HWND API dw_scrollbox_new( int type, int pad ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
643 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
644 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
645 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
646 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
647 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
648 * Returns the position of the scrollbar in the scrollbox. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
649 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
650 * handle: Handle to the scrollbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
651 * orient: The vertical or horizontal scrollbar. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
652 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
653 * The vertical or horizontal position in the scrollbox. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
654 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
655 int API dw_scrollbox_get_pos(HWND handle, int orient) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
656 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
657 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
658 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
659 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
660 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
661 * Gets the range for the scrollbar in the scrollbox. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
662 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
663 * handle: Handle to the scrollbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
664 * orient: The vertical or horizontal scrollbar. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
665 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
666 * The vertical or horizontal range of the scrollbox. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
667 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
668 int API dw_scrollbox_get_range(HWND handle, int orient) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
669 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
670 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
671 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
672 |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
673 /* Internal box packing function called by the other 3 functions */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
674 void _dw_box_pack(HWND box, HWND item, int index, int width, int height, int hsize, int vsize, int pad, char *funcname) |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
675 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
676 Box *thisbox; |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
677 int z, x = 0; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
678 Item *tmpitem, *thisitem; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
679 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
680 thisbox = _dw_get_window_pointer(box); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
681 thisitem = thisbox->items; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
682 |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
683 /* Do some sanity bounds checking */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
684 if(index < 0) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
685 index = 0; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
686 if(index > thisbox->count) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
687 index = thisbox->count; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
688 |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
689 /* Duplicate the existing data */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
690 tmpitem = malloc(sizeof(Item)*(thisbox->count+1)); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
691 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
692 for(z=0;z<thisbox->count;z++) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
693 { |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
694 if(z == index) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
695 x++; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
696 tmpitem[x] = thisitem[z]; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
697 x++; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
698 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
699 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
700 /* Sanity checks */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
701 if(vsize && !height) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
702 height = 1; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
703 if(hsize && !width) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
704 width = 1; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
705 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
706 /* Fill in the item data appropriately */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
707 if(0 /* Test to see if "item" is a box */) |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
708 tmpitem[index].type = TYPEBOX; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
709 else |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
710 tmpitem[index].type = TYPEITEM; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
711 |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
712 tmpitem[index].hwnd = item; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
713 tmpitem[index].origwidth = tmpitem[index].width = width; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
714 tmpitem[index].origheight = tmpitem[index].height = height; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
715 tmpitem[index].pad = pad; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
716 if(hsize) |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
717 tmpitem[index].hsize = SIZEEXPAND; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
718 else |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
719 tmpitem[index].hsize = SIZESTATIC; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
720 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
721 if(vsize) |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
722 tmpitem[index].vsize = SIZEEXPAND; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
723 else |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
724 tmpitem[index].vsize = SIZESTATIC; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
725 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
726 thisbox->items = tmpitem; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
727 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
728 /* Update the item count */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
729 thisbox->count++; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
730 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
731 /* Add the item to the box */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
732 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
733 /* Platform specific code to add item to box */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
734 BoxAdd(box, item); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
735 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
736 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
737 /* Free the old data */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
738 if(thisbox->count) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
739 free(thisitem); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
740 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
741 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
742 /* |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
743 * Pack windows (widgets) into a box at an arbitrary location. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
744 * Parameters: |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
745 * box: Window handle of the box to be packed into. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
746 * item: Window handle of the item to be back. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
747 * index: 0 based index of packed items. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
748 * width: Width in pixels of the item or -1 to be self determined. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
749 * height: Height in pixels of the item or -1 to be self determined. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
750 * hsize: TRUE if the window (widget) should expand horizontally to fill space given. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
751 * vsize: TRUE if the window (widget) should expand vertically to fill space given. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
752 * pad: Number of pixels of padding around the item. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
753 */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
754 void API dw_box_pack_at_index(HWND box, HWND item, int index, int width, int height, int hsize, int vsize, int pad) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
755 { |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
756 _dw_box_pack(box, item, index, width, height, hsize, vsize, pad, "dw_box_pack_at_index()"); |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
757 } |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
758 |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
759 /* |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
760 * Pack windows (widgets) into a box from the start (or top). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
761 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
762 * box: Window handle of the box to be packed into. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
763 * item: Window handle of the item to be back. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
764 * width: Width in pixels of the item or -1 to be self determined. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
765 * height: Height in pixels of the item or -1 to be self determined. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
766 * hsize: TRUE if the window (widget) should expand horizontally to fill space given. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
767 * vsize: TRUE if the window (widget) should expand vertically to fill space given. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
768 * pad: Number of pixels of padding around the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
769 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
770 void API dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
771 { |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
772 /* 65536 is the table limit on GTK... |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
773 * seems like a high enough value we will never hit it here either. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
774 */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
775 _dw_box_pack(box, item, 65536, width, height, hsize, vsize, pad, "dw_box_pack_start()"); |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
776 } |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
777 |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
778 /* |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
779 * Pack windows (widgets) into a box from the end (or bottom). |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
780 * Parameters: |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
781 * box: Window handle of the box to be packed into. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
782 * item: Window handle of the item to be back. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
783 * width: Width in pixels of the item or -1 to be self determined. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
784 * height: Height in pixels of the item or -1 to be self determined. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
785 * hsize: TRUE if the window (widget) should expand horizontally to fill space given. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
786 * vsize: TRUE if the window (widget) should expand vertically to fill space given. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
787 * pad: Number of pixels of padding around the item. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
788 */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
789 void API dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
790 { |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
791 _dw_box_pack(box, item, 0, width, height, hsize, vsize, pad, "dw_box_pack_end()"); |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
792 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
793 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
794 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
795 * Create a new button window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
796 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
797 * text: The text to be display by the static text widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
798 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
799 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
800 * A handle to a button window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
801 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
802 HWND API dw_button_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
803 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
804 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
805 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
806 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
807 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
808 * Create a new Entryfield window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
809 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
810 * text: The default text to be in the entryfield widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
811 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
812 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
813 * A handle to an entryfield window or NULL on failure. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
814 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
815 HWND API dw_entryfield_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
816 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
817 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
818 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
819 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
820 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
821 * Create a new Entryfield (password) window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
822 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
823 * text: The default text to be in the entryfield widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
824 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
825 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
826 * A handle to an entryfield password window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
827 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
828 HWND API dw_entryfield_password_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
829 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
830 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
831 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
832 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
833 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
834 * Sets the entryfield character limit. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
835 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
836 * handle: Handle to the spinbutton to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
837 * limit: Number of characters the entryfield will take. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
838 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
839 void API dw_entryfield_set_limit(HWND handle, ULONG limit) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
840 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
841 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
842 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
843 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
844 * Create a new bitmap button window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
845 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
846 * text: Bubble help text to be displayed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
847 * id: An ID of a bitmap in the resource file. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
848 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
849 * A handle to a bitmap button window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
850 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
851 HWND API dw_bitmapbutton_new(char *text, ULONG resid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
852 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
853 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
854 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
855 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
856 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
857 * Create a new bitmap button window (widget) to be packed from a file. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
858 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
859 * text: Bubble help text to be displayed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
860 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
861 * filename: Name of the file, omit extention to have |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
862 * DW pick the appropriate file extension. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
863 * (BMP on OS/2 or Windows, XPM on Unix) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
864 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
865 * A handle to a bitmap button window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
866 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
867 HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long cid, char *filename) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
868 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
869 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
870 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
871 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
872 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
873 * Create a new bitmap button window (widget) to be packed from data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
874 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
875 * text: Bubble help text to be displayed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
876 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
877 * data: The contents of the image |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
878 * (BMP or ICO on OS/2 or Windows, XPM on Unix) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
879 * len: length of str |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
880 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
881 * A handle to a bitmap button window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
882 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
883 HWND API dw_bitmapbutton_new_from_data(char *text, unsigned long cid, char *data, int len) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
884 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
885 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
886 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
887 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
888 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
889 * Create a new spinbutton window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
890 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
891 * text: The text to be display by the static text widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
892 * id: An ID to be used with dw_window_from_id() or 0L. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
893 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
894 * A handle to a spinbutton window or NULL on failure. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
895 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
896 HWND API dw_spinbutton_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
897 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
898 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
899 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
900 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
901 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
902 * Sets the spinbutton value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
903 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
904 * handle: Handle to the spinbutton to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
905 * position: Current value of the spinbutton. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
906 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
907 void API dw_spinbutton_set_pos(HWND handle, long position) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
908 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
909 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
910 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
911 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
912 * Sets the spinbutton limits. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
913 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
914 * handle: Handle to the spinbutton to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
915 * upper: Upper limit. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
916 * lower: Lower limit. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
917 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
918 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
919 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
920 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
921 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
922 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
923 * Returns the current value of the spinbutton. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
924 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
925 * handle: Handle to the spinbutton to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
926 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
927 * Number value displayed in the spinbutton. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
928 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
929 long API dw_spinbutton_get_pos(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
930 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
931 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
932 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
933 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
934 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
935 * Create a new radiobutton window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
936 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
937 * text: The text to be display by the static text widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
938 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
939 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
940 * A handle to a radio button window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
941 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
942 HWND API dw_radiobutton_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
943 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
944 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
945 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
946 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
947 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
948 * Create a new slider window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
949 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
950 * vertical: TRUE or FALSE if slider is vertical. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
951 * increments: Number of increments available. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
952 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
953 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
954 * A handle to a slider window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
955 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
956 HWND API dw_slider_new(int vertical, int increments, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
957 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
958 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
959 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
960 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
961 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
962 * Returns the position of the slider. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
963 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
964 * handle: Handle to the slider to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
965 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
966 * Position of the slider in the set range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
967 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
968 unsigned int API dw_slider_get_pos(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
969 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
970 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
971 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
972 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
973 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
974 * Sets the slider position. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
975 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
976 * handle: Handle to the slider to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
977 * position: Position of the slider withing the range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
978 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
979 void API dw_slider_set_pos(HWND handle, unsigned int position) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
980 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
981 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
982 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
983 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
984 * Create a new scrollbar window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
985 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
986 * vertical: TRUE or FALSE if scrollbar is vertical. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
987 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
988 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
989 * A handle to a scrollbar window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
990 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
991 HWND API dw_scrollbar_new(int vertical, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
992 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
993 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
994 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
995 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
996 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
997 * Returns the position of the scrollbar. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
998 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
999 * handle: Handle to the scrollbar to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1000 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1001 * Position of the scrollbar in the set range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1002 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1003 unsigned int API dw_scrollbar_get_pos(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1004 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1005 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1006 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1007 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1008 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1009 * Sets the scrollbar position. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1010 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1011 * handle: Handle to the scrollbar to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1012 * position: Position of the scrollbar withing the range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1013 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1014 void API dw_scrollbar_set_pos(HWND handle, unsigned int position) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1015 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1016 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1017 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1018 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1019 * Sets the scrollbar range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1020 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1021 * handle: Handle to the scrollbar to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1022 * range: Maximum range value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1023 * visible: Visible area relative to the range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1024 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1025 void API dw_scrollbar_set_range(HWND handle, unsigned int range, unsigned int visible) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1026 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1027 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1028 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1029 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1030 * Create a new percent bar window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1031 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1032 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1033 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1034 * A handle to a percent bar window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1035 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1036 HWND API dw_percent_new(ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1037 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1038 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1039 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1040 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1041 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1042 * Sets the percent bar position. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1043 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1044 * handle: Handle to the percent bar to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1045 * position: Position of the percent bar withing the range. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1046 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1047 void API dw_percent_set_pos(HWND handle, unsigned int position) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1048 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1049 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1050 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1051 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1052 * Create a new checkbox window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1053 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1054 * text: The text to be display by the static text widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1055 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1056 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1057 * A handle to a checkbox window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1058 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1059 HWND API dw_checkbox_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1060 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1061 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1062 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1063 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1064 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1065 * Returns the state of the checkbox. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1066 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1067 * handle: Handle to the checkbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1068 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1069 * State of checkbox (TRUE or FALSE). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1070 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1071 int API dw_checkbox_get(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1072 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1073 return FALSE; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1074 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1075 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1076 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1077 * Sets the state of the checkbox. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1078 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1079 * handle: Handle to the checkbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1080 * value: TRUE for checked, FALSE for unchecked. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1081 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1082 void API dw_checkbox_set(HWND handle, int value) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1083 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1084 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1085 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1086 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1087 * Create a new listbox window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1088 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1089 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1090 * multi: Multiple select TRUE or FALSE. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1091 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1092 * A handle to a listbox window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1093 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1094 HWND API dw_listbox_new(ULONG cid, int multi) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1095 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1096 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1097 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1098 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1099 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1100 * Appends the specified text to the listbox's (or combobox) entry list. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1101 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1102 * handle: Handle to the listbox to be appended to. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1103 * text: Text to append into listbox. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1104 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1105 void API dw_listbox_append(HWND handle, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1106 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1107 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1108 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1109 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1110 * Inserts the specified text into the listbox's (or combobox) entry list. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1111 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1112 * handle: Handle to the listbox to be inserted into. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1113 * text: Text to insert into listbox. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1114 * pos: 0-based position to insert text |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1115 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1116 void API dw_listbox_insert(HWND handle, char *text, int pos) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1117 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1118 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1119 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1120 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1121 * Appends the specified text items to the listbox's (or combobox) entry list. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1122 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1123 * handle: Handle to the listbox to be appended to. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1124 * text: Text strings to append into listbox. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1125 * count: Number of text strings to append |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1126 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1127 void API dw_listbox_list_append(HWND handle, char **text, int count) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1128 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1129 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1130 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1131 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1132 * Clears the listbox's (or combobox) list of all entries. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1133 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1134 * handle: Handle to the listbox to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1135 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1136 void API dw_listbox_clear(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1137 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1138 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1139 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1140 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1141 * Returns the listbox's item count. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1142 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1143 * handle: Handle to the listbox to be counted. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1144 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1145 * The number of items in the listbox. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1146 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1147 int API dw_listbox_count(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1148 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1149 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1150 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1151 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1152 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1153 * Sets the topmost item in the viewport. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1154 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1155 * handle: Handle to the listbox to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1156 * top: Index to the top item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1157 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1158 void API dw_listbox_set_top(HWND handle, int top) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1159 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1160 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1161 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1162 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1163 * Copies the given index item's text into buffer. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1164 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1165 * handle: Handle to the listbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1166 * index: Index into the list to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1167 * buffer: Buffer where text will be copied. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1168 * length: Length of the buffer (including NULL). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1169 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1170 void API dw_listbox_get_text(HWND handle, unsigned int index, char *buffer, unsigned int length) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1171 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1172 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1173 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1174 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1175 * Sets the text of a given listbox entry. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1176 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1177 * handle: Handle to the listbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1178 * index: Index into the list to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1179 * buffer: Buffer where text will be copied. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1180 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1181 void API dw_listbox_set_text(HWND handle, unsigned int index, char *buffer) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1182 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1183 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1184 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1185 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1186 * Returns the index to the item in the list currently selected. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1187 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1188 * handle: Handle to the listbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1189 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1190 * The selected item index or DW_ERROR_UNKNOWN (-1) on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1191 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1192 int API dw_listbox_selected(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1193 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1194 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1195 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1196 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1197 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1198 * Returns the index to the current selected item or -1 when done. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1199 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1200 * handle: Handle to the listbox to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1201 * where: Either the previous return or -1 to restart. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1202 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1203 * The next selected item or DW_ERROR_UNKNOWN (-1) on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1204 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1205 int API dw_listbox_selected_multi(HWND handle, int where) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1206 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1207 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1208 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1209 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1210 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1211 * Sets the selection state of a given index. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1212 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1213 * handle: Handle to the listbox to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1214 * index: Item index. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1215 * state: TRUE if selected FALSE if unselected. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1216 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1217 void API dw_listbox_select(HWND handle, int index, int state) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1218 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1219 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1220 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1221 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1222 * Deletes the item with given index from the list. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1223 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1224 * handle: Handle to the listbox to be set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1225 * index: Item index. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1226 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1227 void API dw_listbox_delete(HWND handle, int index) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1228 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1229 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1230 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1231 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1232 * Create a new Combobox window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1233 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1234 * text: The default text to be in the combpbox widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1235 * id: An ID to be used with dw_window_from_id() or 0L. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1236 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1237 * A handle to a combobox window or NULL on failure. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1238 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1239 HWND API dw_combobox_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1240 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1241 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1242 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1243 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1244 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1245 * Create a new Multiline Editbox window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1246 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1247 * id: An ID to be used with dw_window_from_id() or 0L. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1248 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1249 * A handle to a MLE window or NULL on failure. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1250 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1251 HWND API dw_mle_new(ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1252 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1253 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1254 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1255 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1256 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1257 * Adds text to an MLE box and returns the current point. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1258 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1259 * handle: Handle to the MLE to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1260 * buffer: Text buffer to be imported. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1261 * startpoint: Point to start entering text. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1262 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1263 * Current position in the buffer. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1264 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1265 unsigned int API dw_mle_import(HWND handle, char *buffer, int startpoint) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1266 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1267 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1268 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1269 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1270 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1271 * Grabs text from an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1272 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1273 * handle: Handle to the MLE to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1274 * buffer: Text buffer to be exported. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1275 * startpoint: Point to start grabbing text. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1276 * length: Amount of text to be grabbed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1277 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1278 void API dw_mle_export(HWND handle, char *buffer, int startpoint, int length) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1279 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1280 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1281 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1282 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1283 * Obtains information about an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1284 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1285 * handle: Handle to the MLE to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1286 * bytes: A pointer to a variable to return the total bytes. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1287 * lines: A pointer to a variable to return the number of lines. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1288 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1289 void API dw_mle_get_size(HWND handle, unsigned long *bytes, unsigned long *lines) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1290 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1291 *bytes = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1292 *lines = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1293 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1294 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1295 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1296 * Deletes text from an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1297 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1298 * handle: Handle to the MLE to be deleted from. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1299 * startpoint: Point to start deleting text. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1300 * length: Amount of text to be deleted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1301 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1302 void API dw_mle_delete(HWND handle, int startpoint, int length) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1303 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1304 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1305 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1306 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1307 * Clears all text from an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1308 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1309 * handle: Handle to the MLE to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1310 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1311 void API dw_mle_clear(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1312 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1313 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1314 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1315 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1316 * Sets the visible line of an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1317 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1318 * handle: Handle to the MLE to be positioned. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1319 * line: Line to be visible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1320 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1321 void API dw_mle_set_visible(HWND handle, int line) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1322 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1323 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1324 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1325 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1326 * Sets the editablity of an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1327 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1328 * handle: Handle to the MLE. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1329 * state: TRUE if it can be edited, FALSE for readonly. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1330 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1331 void API dw_mle_set_editable(HWND handle, int state) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1332 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1333 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1334 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1335 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1336 * Sets the word wrap state of an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1337 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1338 * handle: Handle to the MLE. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1339 * state: TRUE if it wraps, FALSE if it doesn't. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1340 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1341 void API dw_mle_set_word_wrap(HWND handle, int state) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1342 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1343 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1344 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1345 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1346 * Sets the current cursor position of an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1347 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1348 * handle: Handle to the MLE to be positioned. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1349 * point: Point to position cursor. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1350 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1351 void API dw_mle_set_cursor(HWND handle, int point) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1352 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1353 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1354 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1355 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1356 * Finds text in an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1357 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1358 * handle: Handle to the MLE to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1359 * text: Text to search for. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1360 * point: Start point of search. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1361 * flags: Search specific flags. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1362 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1363 * Position in buffer or DW_ERROR_UNKNOWN (-1) on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1364 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1365 int API dw_mle_search(HWND handle, char *text, int point, unsigned long flags) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1366 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1367 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1368 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1369 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1370 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1371 * Stops redrawing of an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1372 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1373 * handle: Handle to the MLE to freeze. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1374 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1375 void API dw_mle_freeze(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1376 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1377 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1378 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1379 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1380 * Resumes redrawing of an MLE box. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1381 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1382 * handle: Handle to the MLE to thaw. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1383 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1384 void API dw_mle_thaw(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1385 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1386 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1387 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1388 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1389 * Create a new status text window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1390 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1391 * text: The text to be display by the static text widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1392 * id: An ID to be used with dw_window_from_id() or 0L. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1393 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1394 * A handle to a status text window or NULL on failure. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1395 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1396 HWND API dw_status_text_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1397 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1398 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1399 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1400 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1401 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1402 * Create a new static text window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1403 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1404 * text: The text to be display by the static text widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1405 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1406 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1407 * A handle to a text window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1408 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1409 HWND API dw_text_new(char *text, ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1410 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1411 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1412 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1413 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1414 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1415 * Creates a rendering context widget (window) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1416 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1417 * id: An id to be used with dw_window_from_id. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1418 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1419 * A handle to the widget or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1420 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1421 HWND API dw_render_new(unsigned long cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1422 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1423 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1424 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1425 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1426 /* Sets the current foreground drawing color. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1427 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1428 * red: red value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1429 * green: green value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1430 * blue: blue value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1431 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1432 void API dw_color_foreground_set(unsigned long value) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1433 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1434 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1435 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1436 /* Sets the current background drawing color. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1437 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1438 * red: red value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1439 * green: green value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1440 * blue: blue value. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1441 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1442 void API dw_color_background_set(unsigned long value) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1443 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1444 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1445 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1446 /* Allows the user to choose a color using the system's color chooser dialog. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1447 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1448 * value: current color |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1449 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1450 * The selected color or the current color if cancelled. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1451 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1452 unsigned long API dw_color_choose(unsigned long value) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1453 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1454 return value; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1455 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1456 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1457 /* Draw a point on a window (preferably a render window). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1458 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1459 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1460 * pixmap: Handle to the pixmap. (choose only one of these) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1461 * x: X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1462 * y: Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1463 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1464 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1465 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1466 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1467 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1468 /* Draw a line on a window (preferably a render window). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1469 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1470 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1471 * pixmap: Handle to the pixmap. (choose only one of these) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1472 * x1: First X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1473 * y1: First Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1474 * x2: Second X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1475 * y2: Second Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1476 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1477 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1478 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1479 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1480 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1481 /* Draw text on a window (preferably a render window). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1482 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1483 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1484 * pixmap: Handle to the pixmap. (choose only one of these) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1485 * x: X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1486 * y: Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1487 * text: Text to be displayed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1488 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1489 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1490 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1491 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1492 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1493 /* Query the width and height of a text string. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1494 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1495 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1496 * pixmap: Handle to the pixmap. (choose only one of these) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1497 * text: Text to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1498 * width: Pointer to a variable to be filled in with the width. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1499 * height: Pointer to a variable to be filled in with the height. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1500 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1501 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1502 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1503 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1504 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1505 /* Draw a polygon on a window (preferably a render window). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1506 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1507 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1508 * pixmap: Handle to the pixmap. (choose only one of these) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1509 * fill: Fill box TRUE or FALSE. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1510 * npoints: Number of points passed in. |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1511 * x: Pointer to array of X coordinates. |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1512 * y: Pointer to array of Y coordinates. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1513 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1514 void API dw_draw_polygon( HWND handle, HPIXMAP pixmap, int fill, int npoints, int *x, int *y ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1515 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1516 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1517 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1518 /* Draw a rectangle on a window (preferably a render window). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1519 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1520 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1521 * pixmap: Handle to the pixmap. (choose only one of these) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1522 * fill: Fill box TRUE or FALSE. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1523 * x: X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1524 * y: Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1525 * width: Width of rectangle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1526 * height: Height of rectangle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1527 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1528 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1529 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1530 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1531 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1532 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1533 * Create a tree object to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1534 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1535 * id: An ID to be used for getting the resource from the |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1536 * resource file. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1537 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1538 * A handle to a tree window or NULL on failure. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1539 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1540 HWND API dw_tree_new(ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1541 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1542 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1543 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1544 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1545 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1546 * Inserts an item into a tree window (widget) after another item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1547 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1548 * handle: Handle to the tree to be inserted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1549 * item: Handle to the item to be positioned after. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1550 * title: The text title of the entry. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1551 * icon: Handle to coresponding icon. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1552 * parent: Parent handle or 0 if root. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1553 * itemdata: Item specific data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1554 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1555 * A handle to a tree item or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1556 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1557 HTREEITEM API dw_tree_insert_after(HWND handle, HTREEITEM item, char *title, HICN icon, HTREEITEM parent, void *itemdata) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1558 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1559 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1560 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1561 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1562 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1563 * Inserts an item into a tree window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1564 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1565 * handle: Handle to the tree to be inserted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1566 * title: The text title of the entry. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1567 * icon: Handle to coresponding icon. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1568 * parent: Parent handle or 0 if root. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1569 * itemdata: Item specific data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1570 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1571 * A handle to a tree item or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1572 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1573 HTREEITEM API dw_tree_insert(HWND handle, char *title, HICN icon, HTREEITEM parent, void *itemdata) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1574 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1575 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1576 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1577 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1578 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1579 * Gets the text an item in a tree window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1580 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1581 * handle: Handle to the tree containing the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1582 * item: Handle of the item to be modified. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1583 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1584 * A malloc()ed buffer of item text to be dw_free()ed or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1585 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1586 char * API dw_tree_get_title(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1587 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1588 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1589 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1590 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1591 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1592 * Gets the text an item in a tree window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1593 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1594 * handle: Handle to the tree containing the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1595 * item: Handle of the item to be modified. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1596 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1597 * A handle to a tree item or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1598 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1599 HTREEITEM API dw_tree_get_parent(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1600 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1601 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1602 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1603 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1604 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1605 * Sets the text and icon of an item in a tree window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1606 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1607 * handle: Handle to the tree containing the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1608 * item: Handle of the item to be modified. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1609 * title: The text title of the entry. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1610 * icon: Handle to coresponding icon. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1611 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1612 void API dw_tree_item_change(HWND handle, HTREEITEM item, char *title, HICN icon) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1613 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1614 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1615 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1616 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1617 * Sets the item data of a tree item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1618 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1619 * handle: Handle to the tree containing the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1620 * item: Handle of the item to be modified. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1621 * itemdata: User defined data to be associated with item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1622 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1623 void API dw_tree_item_set_data(HWND handle, HTREEITEM item, void *itemdata) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1624 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1625 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1626 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1627 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1628 * Gets the item data of a tree item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1629 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1630 * handle: Handle to the tree containing the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1631 * item: Handle of the item to be modified. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1632 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1633 * A pointer to tree item data or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1634 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1635 void * API dw_tree_item_get_data(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1636 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1637 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1638 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1639 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1640 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1641 * Sets this item as the active selection. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1642 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1643 * handle: Handle to the tree window (widget) to be selected. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1644 * item: Handle to the item to be selected. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1645 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1646 void API dw_tree_item_select(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1647 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1648 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1649 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1650 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1651 * Removes all nodes from a tree. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1652 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1653 * handle: Handle to the window (widget) to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1654 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1655 void API dw_tree_clear(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1656 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1657 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1658 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1659 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1660 * Expands a node on a tree. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1661 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1662 * handle: Handle to the tree window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1663 * item: Handle to node to be expanded. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1664 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1665 void API dw_tree_item_expand(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1666 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1667 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1668 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1669 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1670 * Collapses a node on a tree. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1671 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1672 * handle: Handle to the tree window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1673 * item: Handle to node to be collapsed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1674 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1675 void API dw_tree_item_collapse(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1676 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1677 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1678 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1679 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1680 * Removes a node from a tree. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1681 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1682 * handle: Handle to the window (widget) to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1683 * item: Handle to node to be deleted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1684 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1685 void API dw_tree_item_delete(HWND handle, HTREEITEM item) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1686 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1687 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1688 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1689 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1690 * Create a container object to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1691 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1692 * id: An ID to be used for getting the resource from the |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1693 * resource file. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1694 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1695 * A handle to a container window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1696 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1697 HWND API dw_container_new(ULONG cid, int multi) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1698 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1699 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1700 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1701 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1702 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1703 * Sets up the container columns. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1704 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1705 * handle: Handle to the container to be configured. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1706 * flags: An array of unsigned longs with column flags. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1707 * titles: An array of strings with column text titles. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1708 * count: The number of columns (this should match the arrays). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1709 * separator: The column number that contains the main separator. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1710 * (this item may only be used in OS/2) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1711 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1712 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1713 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1714 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1715 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1716 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1717 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1718 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1719 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1720 * Sets up the filesystem columns, note: filesystem always has an icon/filename field. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1721 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1722 * handle: Handle to the container to be configured. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1723 * flags: An array of unsigned longs with column flags. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1724 * titles: An array of strings with column text titles. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1725 * count: The number of columns (this should match the arrays). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1726 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1727 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1728 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1729 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1730 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1731 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1732 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1733 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1734 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1735 * Allocates memory used to populate a container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1736 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1737 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1738 * rowcount: The number of items to be populated. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1739 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1740 * Handle to container items allocated or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1741 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1742 void * API dw_container_alloc(HWND handle, int rowcount) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1743 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1744 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1745 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1746 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1747 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1748 * Sets an item in specified row and column to the given data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1749 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1750 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1751 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1752 * column: Zero based column of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1753 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1754 * data: Pointer to the data to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1755 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1756 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1757 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1758 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1759 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1760 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1761 * Changes an existing item in specified row and column to the given data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1762 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1763 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1764 * column: Zero based column of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1765 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1766 * data: Pointer to the data to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1767 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1768 void API dw_container_change_item(HWND handle, int column, int row, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1769 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1770 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1771 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1772 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1773 * Changes an existing item in specified row and column to the given data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1774 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1775 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1776 * column: Zero based column of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1777 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1778 * data: Pointer to the data to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1779 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1780 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1781 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1782 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1783 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1784 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1785 * Changes an item in specified row and column to the given data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1786 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1787 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1788 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1789 * column: Zero based column of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1790 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1791 * data: Pointer to the data to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1792 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1793 void API dw_filesystem_change_file(HWND handle, int row, char *filename, HICN icon) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1794 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1795 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1796 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1797 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1798 * Sets an item in specified row and column to the given data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1799 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1800 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1801 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1802 * column: Zero based column of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1803 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1804 * data: Pointer to the data to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1805 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1806 void API dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, HICN icon) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1807 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1808 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1809 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1810 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1811 * Sets an item in specified row and column to the given data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1812 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1813 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1814 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1815 * column: Zero based column of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1816 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1817 * data: Pointer to the data to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1818 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1819 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1820 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1821 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1822 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1823 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1824 * Gets column type for a container column. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1825 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1826 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1827 * column: Zero based column. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1828 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1829 * Constant identifying the the column type. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1830 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1831 int API dw_container_get_column_type(HWND handle, int column) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1832 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1833 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1834 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1835 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1836 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1837 * Gets column type for a filesystem container column. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1838 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1839 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1840 * column: Zero based column. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1841 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1842 * Constant identifying the the column type. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
1843 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1844 int API dw_filesystem_get_column_type(HWND handle, int column) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1845 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1846 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1847 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1848 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1849 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1850 * Sets the width of a column in the container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1851 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1852 * handle: Handle to window (widget) of container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1853 * column: Zero based column of width being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1854 * width: Width of column in pixels. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1855 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1856 void API dw_container_set_column_width(HWND handle, int column, int width) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1857 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1858 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1859 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1860 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1861 * Sets the title of a row in the container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1862 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1863 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1864 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1865 * title: String title of the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1866 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1867 void API dw_container_set_row_title(void *pointer, int row, char *title) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1868 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1869 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1870 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1871 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1872 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1873 * Sets the title of a row in the container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1874 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1875 * handle: Handle to window (widget) of container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1876 * row: Zero based row of data being set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1877 * title: String title of the item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1878 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1879 void API dw_container_change_row_title(HWND handle, int row, char *title) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1880 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1881 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1882 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1883 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1884 * Sets the title of a row in the container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1885 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1886 * handle: Handle to the container window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1887 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1888 * rowcount: The number of rows to be inserted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1889 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1890 void API dw_container_insert(HWND handle, void *pointer, int rowcount) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1891 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1892 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1893 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1894 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1895 * Removes all rows from a container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1896 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1897 * handle: Handle to the window (widget) to be cleared. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1898 * redraw: TRUE to cause the container to redraw immediately. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1899 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1900 void API dw_container_clear(HWND handle, int redraw) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1901 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1902 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1903 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1904 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1905 * Removes the first x rows from a container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1906 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1907 * handle: Handle to the window (widget) to be deleted from. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1908 * rowcount: The number of rows to be deleted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1909 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1910 void API dw_container_delete(HWND handle, int rowcount) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1911 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1912 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1913 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1914 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1915 * Scrolls container up or down. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1916 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1917 * handle: Handle to the window (widget) to be scrolled. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1918 * direction: DW_SCROLL_UP, DW_SCROLL_DOWN, DW_SCROLL_TOP or |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1919 * DW_SCROLL_BOTTOM. (rows is ignored for last two) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1920 * rows: The number of rows to be scrolled. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1921 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1922 void API dw_container_scroll(HWND handle, int direction, long rows) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1923 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1924 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1925 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1926 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1927 * Starts a new query of a container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1928 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1929 * handle: Handle to the window (widget) to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1930 * flags: If this parameter is DW_CRA_SELECTED it will only |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1931 * return items that are currently selected. Otherwise |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1932 * it will return all records in the container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1933 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1934 * Pointer to data associated with first entry or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1935 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1936 char * API dw_container_query_start(HWND handle, unsigned long flags) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1937 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1938 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1939 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1940 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1941 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1942 * Continues an existing query of a container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1943 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1944 * handle: Handle to the window (widget) to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1945 * flags: If this parameter is DW_CRA_SELECTED it will only |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1946 * return items that are currently selected. Otherwise |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1947 * it will return all records in the container. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1948 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1949 * Pointer to data associated with next entry or NULL on error or completion. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
1950 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1951 char * API dw_container_query_next(HWND handle, unsigned long flags) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1952 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1953 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1954 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1955 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1956 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1957 * Cursors the item with the text speficied, and scrolls to that item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1958 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1959 * handle: Handle to the window (widget) to be queried. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1960 * text: Text usually returned by dw_container_query(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1961 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1962 void API dw_container_cursor(HWND handle, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1963 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1964 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1965 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1966 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1967 * Deletes the item with the text speficied. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1968 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1969 * handle: Handle to the window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1970 * text: Text usually returned by dw_container_query(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1971 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1972 void API dw_container_delete_row(HWND handle, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1973 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1974 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1975 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1976 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1977 * Optimizes the column widths so that all data is visible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1978 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1979 * handle: Handle to the window (widget) to be optimized. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1980 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1981 void API dw_container_optimize(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1982 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1983 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1984 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1985 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1986 * Inserts an icon into the taskbar. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1987 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1988 * handle: Window handle that will handle taskbar icon messages. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1989 * icon: Icon handle to display in the taskbar. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1990 * bubbletext: Text to show when the mouse is above the icon. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1991 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1992 void API dw_taskbar_insert(HWND handle, HICN icon, char *bubbletext) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1993 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1994 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1995 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1996 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1997 * Deletes an icon from the taskbar. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1998 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
1999 * handle: Window handle that was used with dw_taskbar_insert(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2000 * icon: Icon handle that was used with dw_taskbar_insert(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2001 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2002 void API dw_taskbar_delete(HWND handle, HICN icon) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2003 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2004 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2005 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2006 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2007 * Obtains an icon from a module (or header in GTK). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2008 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2009 * module: Handle to module (DLL) in OS/2 and Windows. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2010 * id: A unsigned long id int the resources on OS/2 and |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2011 * Windows, on GTK this is converted to a pointer |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2012 * to an embedded XPM. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2013 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2014 * Handle to the created icon or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2015 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2016 HICN API dw_icon_load(unsigned long module, unsigned long resid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2017 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2018 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2019 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2020 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2021 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2022 * Obtains an icon from a file. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2023 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2024 * filename: Name of the file, omit extention to have |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2025 * DW pick the appropriate file extension. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2026 * (ICO on OS/2 or Windows, XPM on Unix) |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2027 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2028 * Handle to the created icon or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2029 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2030 HICN API dw_icon_load_from_file(char *filename) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2031 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2032 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2033 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2034 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2035 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2036 * Obtains an icon from data. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2037 * Parameters: |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2038 * data: Data for the icon (ICO on OS/2 or Windows, XPM on Unix, PNG on Mac) |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2039 * len: Length of the passed in data. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2040 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2041 * Handle to the created icon or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2042 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2043 HICN API dw_icon_load_from_data(char *data, int len) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2044 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2045 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2046 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2047 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2048 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2049 * Frees a loaded icon resource. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2050 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2051 * handle: Handle to icon returned by dw_icon_load(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2052 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2053 void API dw_icon_free(HICN handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2054 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2055 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2056 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2057 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2058 * Create a new MDI Frame to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2059 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2060 * id: An ID to be used with dw_window_from_id or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2061 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2062 * Handle to the created MDI widget or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2063 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2064 HWND API dw_mdi_new(unsigned long cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2065 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2066 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2067 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2068 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2069 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2070 * Creates a splitbar window (widget) with given parameters. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2071 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2072 * type: Value can be DW_VERT or DW_HORZ. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2073 * topleft: Handle to the window to be top or left. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2074 * bottomright: Handle to the window to be bottom or right. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2075 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2076 * A handle to a splitbar window or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2077 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2078 HWND API dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2079 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2080 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2081 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2082 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2083 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2084 * Sets the position of a splitbar (pecentage). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2085 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2086 * handle: The handle to the splitbar returned by dw_splitbar_new(). |
1117
9ca5de2e59f8
Fixed the dw_splitbar_set() comment documentation. The percent parameter was missing.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1115
diff
changeset
|
2087 * percent: The position of the splitbar. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2088 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2089 void API dw_splitbar_set(HWND handle, float percent) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2090 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2091 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2092 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2093 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2094 * Gets the position of a splitbar (pecentage). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2095 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2096 * handle: The handle to the splitbar returned by dw_splitbar_new(). |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2097 * Returns: |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2098 * Position of the splitbar (percentage). |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2099 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2100 float API dw_splitbar_get(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2101 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2102 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2103 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2104 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2105 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2106 * Create a bitmap object to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2107 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2108 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2109 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2110 * Handle to the created bitmap widget or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2111 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2112 HWND API dw_bitmap_new(ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2113 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2114 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2115 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2116 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2117 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2118 * Creates a pixmap with given parameters. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2119 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2120 * handle: Window handle the pixmap is associated with. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2121 * width: Width of the pixmap in pixels. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2122 * height: Height of the pixmap in pixels. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2123 * depth: Color depth of the pixmap. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2124 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2125 * A handle to a pixmap or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2126 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2127 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2128 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2129 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2130 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2131 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2132 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2133 * Creates a pixmap from a file. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2134 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2135 * handle: Window handle the pixmap is associated with. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2136 * filename: Name of the file, omit extention to have |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2137 * DW pick the appropriate file extension. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2138 * (BMP on OS/2 or Windows, XPM on Unix) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2139 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2140 * A handle to a pixmap or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2141 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2142 HPIXMAP API dw_pixmap_new_from_file(HWND handle, char *filename) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2143 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2144 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2145 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2146 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2147 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2148 * Creates a pixmap from data in memory. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2149 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2150 * handle: Window handle the pixmap is associated with. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2151 * data: Source of the image data |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2152 * (BMP on OS/2 or Windows, XPM on Unix) |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2153 * len: Length of data |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2154 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2155 * A handle to a pixmap or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2156 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2157 HPIXMAP API dw_pixmap_new_from_data(HWND handle, char *data, int len) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2158 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2159 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2160 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2161 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2162 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2163 * Sets the transparent color for a pixmap. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2164 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2165 * pixmap: Handle to a pixmap returned by |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2166 * dw_pixmap_new.. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2167 * color: Transparent RGB color |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2168 * Note: This is only necessary on platforms that |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2169 * don't handle transparency automatically |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2170 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2171 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color ) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2172 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2173 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2174 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2175 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2176 * Creates a pixmap from internal resource graphic specified by id. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2177 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2178 * handle: Window handle the pixmap is associated with. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2179 * id: Resource ID associated with requested pixmap. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2180 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2181 * A handle to a pixmap or NULL on failure. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2182 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2183 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG resid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2184 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2185 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2186 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2187 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2188 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2189 * Destroys an allocated pixmap. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2190 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2191 * pixmap: Handle to a pixmap returned by |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2192 * dw_pixmap_new.. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2193 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2194 void API dw_pixmap_destroy(HPIXMAP pixmap) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2195 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2196 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2197 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2198 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2199 * Copies from one item to another. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2200 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2201 * dest: Destination window handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2202 * destp: Destination pixmap. (choose only one). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2203 * xdest: X coordinate of destination. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2204 * ydest: Y coordinate of destination. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2205 * width: Width of area to copy. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2206 * height: Height of area to copy. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2207 * src: Source window handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2208 * srcp: Source pixmap. (choose only one). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2209 * xsrc: X coordinate of source. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2210 * ysrc: Y coordinate of source. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2211 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2212 void API dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2213 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2214 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2215 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2216 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2217 * Create a new calendar window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2218 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2219 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2220 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2221 * Handle to the created calendar or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2222 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2223 HWND API dw_calendar_new(ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2224 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2225 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2226 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2227 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2228 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2229 * Sets the current date of a calendar. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2230 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2231 * handle: The handle to the calendar returned by dw_calendar_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2232 * year, month, day: To set the calendar to display. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2233 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2234 void dw_calendar_set_date(HWND handle, unsigned int year, unsigned int month, unsigned int day) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2235 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2236 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2237 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2238 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2239 * Gets the year, month and day set in the calendar widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2240 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2241 * handle: The handle to the calendar returned by dw_calendar_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2242 * year: Variable to store the year or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2243 * month: Variable to store the month or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2244 * day: Variable to store the day or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2245 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2246 void dw_calendar_get_date(HWND handle, unsigned int *year, unsigned int *month, unsigned int *day) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2247 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2248 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2249 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2250 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2251 * Causes the embedded HTML widget to take action. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2252 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2253 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2254 * action: One of the DW_HTML_* constants. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2255 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2256 void API dw_html_action(HWND handle, int action) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2257 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2258 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2259 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2260 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2261 * Render raw HTML code in the embedded HTML widget.. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2262 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2263 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2264 * string: String buffer containt HTML code to |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2265 * be rendered. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2266 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2267 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2268 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2269 int API dw_html_raw(HWND handle, char *string) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2270 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2271 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2272 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2273 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2274 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2275 * Render file or web page in the embedded HTML widget.. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2276 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2277 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2278 * url: Universal Resource Locator of the web or |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2279 * file object to be rendered. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2280 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2281 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2282 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2283 int API dw_html_url(HWND handle, char *url) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2284 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2285 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2286 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2287 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2288 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2289 * Create a new HTML window (widget) to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2290 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2291 * id: An ID to be used with dw_window_from_id() or 0L. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2292 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2293 * Handle to the created html widget or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2294 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2295 HWND API dw_html_new(unsigned long cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2296 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2297 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2298 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2299 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2300 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2301 * Returns the current X and Y coordinates of the mouse pointer. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2302 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2303 * x: Pointer to variable to store X coordinate or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2304 * y: Pointer to variable to store Y coordinate or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2305 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2306 void API dw_pointer_query_pos(long *x, long *y) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2307 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2308 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2309 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2310 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2311 * Sets the X and Y coordinates of the mouse pointer. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2312 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2313 * x: X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2314 * y: Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2315 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2316 void API dw_pointer_set_pos(long x, long y) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2317 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2318 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2319 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2320 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2321 * Create a menu object to be popped up. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2322 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2323 * id: An ID to be used associated with this menu. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2324 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2325 * Handle to the created menu or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2326 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2327 HMENUI API dw_menu_new(ULONG cid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2328 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2329 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2330 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2331 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2332 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2333 * Create a menubar on a window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2334 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2335 * location: Handle of a window frame to be attached to. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2336 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2337 * Handle to the created menu bar or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2338 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2339 HMENUI API dw_menubar_new(HWND location) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2340 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2341 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2342 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2343 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2344 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2345 * Destroys a menu created with dw_menubar_new or dw_menu_new. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2346 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2347 * menu: Handle of a menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2348 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2349 void API dw_menu_destroy(HMENUI *menu) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2350 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2351 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2352 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2353 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2354 * Pops up a context menu at given x and y coordinates. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2355 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2356 * menu: The handle the the existing menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2357 * parent: Handle to the window initiating the popup. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2358 * x: X coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2359 * y: Y coordinate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2360 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2361 void API dw_menu_popup(HMENUI *menu, HWND parent, int x, int y) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2362 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2363 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2364 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2365 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2366 * Adds a menuitem or submenu to an existing menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2367 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2368 * menu: The handle the the existing menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2369 * title: The title text on the menu item to be added. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2370 * id: An ID to be used for message passing. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2371 * flags: Extended attributes to set on the menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2372 * end: If TRUE memu is positioned at the end of the menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2373 * check: If TRUE menu is "check"able. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2374 * submenu: Handle to an existing menu to be a submenu or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2375 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2376 * Handle to the created menu item or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2377 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2378 HWND API dw_menu_append_item(HMENUI menux, char *title, ULONG itemid, ULONG flags, int end, int check, HMENUI submenux) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2379 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2380 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2381 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2382 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2383 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2384 * Sets the state of a menu item check. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2385 * Deprecated; use dw_menu_item_set_state() |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2386 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2387 * menu: The handle the the existing menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2388 * id: Menuitem id. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2389 * check: TRUE for checked FALSE for not checked. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2390 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2391 void API dw_menu_item_set_check(HMENUI menux, unsigned long itemid, int check) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2392 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2393 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2394 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2395 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2396 * Sets the state of a menu item. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2397 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2398 * menu: The handle to the existing menu. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2399 * id: Menuitem id. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2400 * flags: DW_MIS_ENABLED/DW_MIS_DISABLED |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2401 * DW_MIS_CHECKED/DW_MIS_UNCHECKED |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2402 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2403 void API dw_menu_item_set_state(HMENUI menux, unsigned long itemid, unsigned long state) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2404 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2405 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2406 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2407 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2408 * Create a notebook object to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2409 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2410 * id: An ID to be used for getting the resource from the |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2411 * resource file. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2412 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2413 * Handle to the created notebook or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2414 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2415 HWND API dw_notebook_new(ULONG cid, int top) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2416 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2417 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2418 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2419 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2420 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2421 * Adds a new page to specified notebook. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2422 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2423 * handle: Window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2424 * flags: Any additional page creation flags. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2425 * front: If TRUE page is added at the beginning. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2426 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2427 * ID of newly created notebook page. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2428 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2429 unsigned long API dw_notebook_page_new(HWND handle, ULONG flags, int front) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2430 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2431 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2432 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2433 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2434 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2435 * Remove a page from a notebook. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2436 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2437 * handle: Handle to the notebook widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2438 * pageid: ID of the page to be destroyed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2439 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2440 void API dw_notebook_page_destroy(HWND handle, unsigned int pageid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2441 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2442 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2443 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2444 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2445 * Queries the currently visible page ID. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2446 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2447 * handle: Handle to the notebook widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2448 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2449 * ID of visible notebook page. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2450 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2451 unsigned long API dw_notebook_page_get(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2452 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2453 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2454 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2455 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2456 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2457 * Sets the currently visible page ID. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2458 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2459 * handle: Handle to the notebook widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2460 * pageid: ID of the page to be made visible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2461 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2462 void API dw_notebook_page_set(HWND handle, unsigned int pageid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2463 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2464 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2465 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2466 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2467 * Sets the text on the specified notebook tab. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2468 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2469 * handle: Notebook handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2470 * pageid: Page ID of the tab to set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2471 * text: Pointer to the text to set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2472 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2473 void API dw_notebook_page_set_text(HWND handle, ULONG pageid, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2474 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2475 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2476 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2477 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2478 * Sets the text on the specified notebook tab status area. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2479 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2480 * handle: Notebook handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2481 * pageid: Page ID of the tab to set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2482 * text: Pointer to the text to set. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2483 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2484 void API dw_notebook_page_set_status_text(HWND handle, ULONG pageid, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2485 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2486 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2487 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2488 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2489 * Packs the specified box into the notebook page. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2490 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2491 * handle: Handle to the notebook to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2492 * pageid: Page ID in the notebook which is being packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2493 * page: Box handle to be packed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2494 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2495 void API dw_notebook_pack(HWND handle, ULONG pageid, HWND page) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2496 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2497 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2498 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2499 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2500 * Create a new Window Frame. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2501 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2502 * owner: The Owner's window handle or HWND_DESKTOP. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2503 * title: The Window title. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2504 * flStyle: Style flags. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2505 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2506 * Handle to the created window or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2507 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2508 HWND API dw_window_new(HWND hwndOwner, char *title, ULONG flStyle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2509 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2510 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2511 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2512 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2513 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2514 * Call a function from the window (widget)'s context (typically the message loop thread). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2515 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2516 * handle: Window handle of the widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2517 * function: Function pointer to be called. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2518 * data: Pointer to the data to be passed to the function. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2519 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2520 void API dw_window_function(HWND handle, void *function, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2521 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2522 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2523 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2524 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2525 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2526 * Changes the appearance of the mouse pointer. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2527 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2528 * handle: Handle to widget for which to change. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2529 * cursortype: ID of the pointer you want. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2530 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2531 void API dw_window_set_pointer(HWND handle, int pointertype) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2532 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2533 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2534 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2535 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2536 * Makes the window visible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2537 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2538 * handle: The window handle to make visible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2539 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2540 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2541 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2542 int API dw_window_show(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2543 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2544 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2545 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2546 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2547 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2548 * Makes the window invisible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2549 * Parameters: |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2550 * handle: The window handle to hide. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2551 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2552 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2553 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2554 int API dw_window_hide(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2555 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2556 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2557 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2558 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2559 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2560 * Sets the colors used by a specified window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2561 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2562 * handle: The window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2563 * fore: Foreground color in DW_RGB format or a default color index. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2564 * back: Background color in DW_RGB format or a default color index. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2565 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2566 * DW_ERROR_NONE (0) on success. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2567 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2568 int API dw_window_set_color(HWND handle, ULONG fore, ULONG back) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2569 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2570 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2571 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2572 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2573 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2574 * Sets the border size of a specified window (widget) handle. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2575 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2576 * handle: The window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2577 * border: Size of the window border in pixels. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2578 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2579 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2580 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2581 int API dw_window_set_border(HWND handle, int border) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2582 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2583 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2584 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2585 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2586 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2587 * Sets the style of a given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2588 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2589 * handle: Window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2590 * style: Style features enabled or disabled. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2591 * mask: Corresponding bitmask of features to be changed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2592 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2593 void API dw_window_set_style(HWND handle, ULONG style, ULONG mask) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2594 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2595 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2596 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2597 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2598 * Sets the default focus item for a window/dialog. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2599 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2600 * window: Toplevel window or dialog. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2601 * defaultitem: Handle to the dialog item to be default. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2602 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2603 void API dw_window_default(HWND handle, HWND defaultitem) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2604 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2605 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2606 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2607 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2608 * Sets window to click the default dialog item when an ENTER is pressed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2609 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2610 * window: Window (widget) to look for the ENTER press. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2611 * next: Window (widget) to move to next (or click) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2612 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2613 void API dw_window_click_default(HWND handle, HWND next) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2614 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2615 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2616 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2617 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2618 * Captures the mouse input to this window even if it is outside the bounds. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2619 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2620 * handle: Handle to receive mouse input. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2621 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2622 void API dw_window_capture(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2623 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2624 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2625 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2626 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2627 * Releases previous mouse capture. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2628 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2629 void API dw_window_release(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2630 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2631 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2632 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2633 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2634 * Changes a window's parent to newparent. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2635 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2636 * handle: The window handle to destroy. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2637 * newparent: The window's new parent window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2638 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2639 void API dw_window_reparent(HWND handle, HWND newparent) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2640 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2641 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2642 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2643 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2644 * Sets the font used by a specified window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2645 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2646 * handle: The window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2647 * fontname: Name and size of the font in the form "size.fontname" |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2648 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2649 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2650 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2651 int API dw_window_set_font(HWND handle, char *fontname) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2652 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2653 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2654 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2655 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2656 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2657 * Returns the current font for the specified window. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2658 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2659 * handle: The window handle from which to obtain the font. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2660 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2661 * A malloc()ed font name string to be dw_free()ed or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2662 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2663 char * API dw_window_get_font(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2664 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2665 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2666 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2667 |
1089
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2668 /* Allows the user to choose a font using the system's font chooser dialog. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2669 * Parameters: |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2670 * currfont: current font |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2671 * Returns: |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2672 * A malloced buffer with the selected font or NULL on error. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2673 */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2674 char * API dw_font_choose(char *currfont) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2675 { |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2676 return NULL; |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2677 } |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2678 |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2679 /* |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2680 * Sets the default font used on text based widgets. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2681 * Parameters: |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2682 * fontname: Font name in Dynamic Windows format. |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2683 */ |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2684 void API dw_font_set_default(char *fontname) |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2685 { |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2686 } |
b58032a619b9
Added new functions for 2.1 to the template, and updated the box packing examples to use the new unified method to reduce redundancy.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1010
diff
changeset
|
2687 |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2688 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2689 * Destroys a window and all of it's children. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2690 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2691 * handle: The window handle to destroy. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2692 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2693 * DW_ERROR_NONE (0) on success. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
2694 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2695 int API dw_window_destroy(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2696 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2697 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2698 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2699 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2700 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2701 * Gets the text used for a given window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2702 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2703 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2704 * Returns: |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2705 * The text associsated with a given window or NULL on error. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2706 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2707 char * API dw_window_get_text(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2708 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2709 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2710 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2711 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2712 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2713 * Sets the text used for a given window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2714 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2715 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2716 * text: The text associsated with a given window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2717 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2718 void API dw_window_set_text(HWND handle, char *text) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2719 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2720 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2721 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2722 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2723 * Disables given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2724 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2725 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2726 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2727 void API dw_window_disable(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2728 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2729 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2730 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2731 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2732 * Enables given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2733 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2734 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2735 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2736 void API dw_window_enable(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2737 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2738 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2739 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2740 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2741 * Sets the bitmap used for a given static window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2742 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2743 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2744 * id: An ID to be used to specify the icon, |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2745 * (pass 0 if you use the filename param) |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2746 * data: memory buffer containing image (Bitmap on OS/2 or |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2747 * Windows and a pixmap on Unix, pass |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2748 * NULL if you use the id param) |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2749 * len: Length of data passed |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2750 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2751 void API dw_window_set_bitmap_from_data(HWND handle, unsigned long cid, char *data, int len) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2752 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2753 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2754 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2755 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2756 * Sets the bitmap used for a given static window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2757 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2758 * handle: Handle to the window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2759 * id: An ID to be used to specify the icon, |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2760 * (pass 0 if you use the filename param) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2761 * filename: a path to a file (Bitmap on OS/2 or |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2762 * Windows and a pixmap on Unix, pass |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2763 * NULL if you use the id param) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2764 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2765 void API dw_window_set_bitmap(HWND handle, unsigned long resid, char *filename) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2766 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2767 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2768 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2769 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2770 * Sets the icon used for a given window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2771 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2772 * handle: Handle to the window. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2773 * icon: Handle to icon to be used. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2774 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2775 void API dw_window_set_icon(HWND handle, HICN icon) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2776 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2777 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2778 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2779 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2780 * Gets the child window handle with specified ID. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2781 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2782 * handle: Handle to the parent window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2783 * id: Integer ID of the child. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2784 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2785 * HWND of window with ID or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2786 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2787 HWND API dw_window_from_id(HWND handle, int id) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2788 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2789 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2790 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2791 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2792 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2793 * Minimizes or Iconifies a top-level window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2794 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2795 * handle: The window handle to minimize. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2796 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2797 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2798 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2799 int API dw_window_minimize(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2800 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2801 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2802 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2803 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2804 /* Causes entire window to be invalidated and redrawn. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2805 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2806 * handle: Toplevel window handle to be redrawn. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2807 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2808 void API dw_window_redraw(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2809 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2810 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2811 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2812 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2813 * Makes the window topmost. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2814 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2815 * handle: The window handle to make topmost. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2816 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2817 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2818 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2819 int API dw_window_raise(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2820 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2821 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2822 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2823 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2824 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2825 * Makes the window bottommost. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2826 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2827 * handle: The window handle to make bottommost. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2828 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2829 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2830 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2831 int API dw_window_lower(HWND handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2832 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2833 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2834 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2835 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2836 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2837 * Sets the size of a given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2838 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2839 * handle: Window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2840 * width: New width in pixels. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2841 * height: New height in pixels. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2842 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2843 void API dw_window_set_size(HWND handle, ULONG width, ULONG height) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2844 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2845 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2846 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2847 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2848 * Sets the position of a given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2849 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2850 * handle: Window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2851 * x: X location from the bottom left. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2852 * y: Y location from the bottom left. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2853 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2854 void API dw_window_set_pos(HWND handle, LONG x, LONG y) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2855 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2856 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2857 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2858 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2859 * Sets the position and size of a given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2860 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2861 * handle: Window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2862 * x: X location from the bottom left. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2863 * y: Y location from the bottom left. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2864 * width: Width of the widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2865 * height: Height of the widget. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2866 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2867 void API dw_window_set_pos_size(HWND handle, LONG x, LONG y, ULONG width, ULONG height) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2868 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2869 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2870 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2871 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2872 * Gets the position and size of a given window (widget). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2873 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2874 * handle: Window (widget) handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2875 * x: X location from the bottom left or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2876 * y: Y location from the bottom left or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2877 * width: Width of the widget or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2878 * height: Height of the widget or NULL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2879 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2880 void API dw_window_get_pos_size(HWND handle, LONG *x, LONG *y, ULONG *width, ULONG *height) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2881 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2882 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2883 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2884 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2885 * Returns the width of the screen. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2886 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2887 int API dw_screen_width(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2888 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2889 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2890 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2891 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2892 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2893 * Returns the height of the screen. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2894 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2895 int API dw_screen_height(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2896 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2897 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2898 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2899 |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2900 /* This should return the current color depth. */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2901 unsigned long API dw_color_depth_get(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2902 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2903 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2904 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2905 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2906 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2907 * Returns some information about the current operating environment. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2908 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2909 * env: Pointer to a DWEnv struct. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2910 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2911 void dw_environment_query(DWEnv *env) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2912 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2913 strcpy(env->osName, "Unknown"); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2914 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2915 strcpy(env->buildDate, __DATE__); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2916 strcpy(env->buildTime, __TIME__); |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2917 env->DWMajorVersion = DW_MAJOR_VERSION; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2918 env->DWMinorVersion = DW_MINOR_VERSION; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2919 env->DWSubVersion = DW_SUB_VERSION; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2920 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2921 env->MajorVersion = 0; /* Operating system major */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2922 env->MinorVersion = 0; /* Operating system minor */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2923 env->MajorBuild = 0; /* Build versions... if available */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2924 env->MinorBuild = 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2925 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2926 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2927 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2928 * Emits a beep. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2929 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2930 * freq: Frequency. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2931 * dur: Duration. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2932 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2933 void API dw_beep(int freq, int dur) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2934 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2935 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2936 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2937 /* Call this after drawing to the screen to make sure |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2938 * anything you have drawn is visible. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2939 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2940 void API dw_flush(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2941 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2942 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2943 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2944 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2945 * Add a named user data item to a window handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2946 * Parameters: |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2947 * window: Window handle to save data to. |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2948 * dataname: A string pointer identifying which data to be saved. |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2949 * data: User data to be saved to the window handle. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2950 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2951 void dw_window_set_data(HWND window, char *dataname, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2952 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2953 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2954 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2955 /* |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2956 * Gets a named user data item from a window handle. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2957 * Parameters: |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2958 * window: Window handle to get data from. |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2959 * dataname: A string pointer identifying which data to get. |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2960 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2961 * Pointer to data or NULL if no data is available. |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
2962 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2963 void *dw_window_get_data(HWND window, char *dataname) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2964 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2965 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2966 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2967 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2968 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2969 * Add a callback to a timer event. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2970 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2971 * interval: Milliseconds to delay between calls. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2972 * sigfunc: The pointer to the function to be used as the callback. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2973 * data: User data to be passed to the handler function. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2974 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2975 * Timer ID for use with dw_timer_disconnect(), 0 on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2976 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2977 int API dw_timer_connect(int interval, void *sigfunc, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2978 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2979 return 0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2980 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2981 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2982 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2983 * Removes timer callback. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2984 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2985 * id: Timer ID returned by dw_timer_connect(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2986 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2987 void API dw_timer_disconnect(int timerid) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2988 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2989 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2990 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2991 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2992 * Add a callback to a window event. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2993 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2994 * window: Window handle of signal to be called back. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2995 * signame: A string pointer identifying which signal to be hooked. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2996 * sigfunc: The pointer to the function to be used as the callback. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2997 * data: User data to be passed to the handler function. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2998 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
2999 void API dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3000 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3001 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3002 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3003 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3004 * Removes callbacks for a given window with given name. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3005 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3006 * window: Window handle of callback to be removed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3007 * signame: Signal name to be matched on window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3008 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3009 void API dw_signal_disconnect_by_name(HWND window, char *signame) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3010 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3011 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3012 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3013 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3014 * Removes all callbacks for a given window. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3015 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3016 * window: Window handle of callback to be removed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3017 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3018 void API dw_signal_disconnect_by_window(HWND window) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3019 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3020 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3021 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3022 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3023 * Removes all callbacks for a given window with specified data. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3024 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3025 * window: Window handle of callback to be removed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3026 * data: Pointer to the data to be compared against. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3027 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3028 void API dw_signal_disconnect_by_data(HWND window, void *data) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3029 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3030 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3031 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3032 /* Open a shared library and return a handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3033 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3034 * name: Base name of the shared library. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3035 * handle: Pointer to a module handle, |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3036 * will be filled in with the handle. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3037 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3038 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3039 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3040 int dw_module_load(char *name, HMOD *handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3041 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3042 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3043 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3044 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3045 /* Queries the address of a symbol within open handle. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3046 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3047 * handle: Module handle returned by dw_module_load() |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3048 * name: Name of the symbol you want the address of. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3049 * func: A pointer to a function pointer, to obtain |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3050 * the address. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3051 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3052 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3053 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3054 int dw_module_symbol(HMOD handle, char *name, void**func) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3055 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3056 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3057 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3058 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3059 /* Frees the shared library previously opened. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3060 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3061 * handle: Module handle returned by dw_module_load() |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3062 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3063 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3064 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3065 int dw_module_close(HMOD handle) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3066 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3067 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3068 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3069 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3070 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3071 * Returns the handle to an unnamed mutex semaphore or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3072 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3073 HMTX dw_mutex_new(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3074 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3075 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3076 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3077 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3078 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3079 * Closes a semaphore created by dw_mutex_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3080 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3081 * mutex: The handle to the mutex returned by dw_mutex_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3082 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3083 void dw_mutex_close(HMTX mutex) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3084 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3085 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3086 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3087 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3088 * Tries to gain access to the semaphore, if it can't it blocks. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3089 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3090 * mutex: The handle to the mutex returned by dw_mutex_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3091 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3092 void dw_mutex_lock(HMTX mutex) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3093 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3094 #if 0 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3095 /* We need to handle locks from the main thread differently... |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3096 * since we can't stop message processing... otherwise we |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3097 * will deadlock... so try to acquire the lock and continue |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3098 * processing messages in between tries. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3099 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3100 if(_dw_thread == dw_thread_id()) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3101 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3102 while(/* Attempt to lock the mutex */) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3103 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3104 /* Process any pending events */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3105 while(dw_main_iteration()) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3106 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3107 /* Just loop */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3108 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3109 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3110 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3111 else |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3112 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3113 /* Lock the mutex */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3114 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3115 #endif |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3116 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3117 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3118 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3119 * Reliquishes the access to the semaphore. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3120 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3121 * mutex: The handle to the mutex returned by dw_mutex_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3122 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3123 void dw_mutex_unlock(HMTX mutex) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3124 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3125 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3126 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3127 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3128 * Returns the handle to an unnamed event semaphore or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3129 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3130 HEV dw_event_new(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3131 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3132 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3133 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3134 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3135 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3136 * Resets a semaphore created by dw_event_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3137 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3138 * eve: The handle to the event returned by dw_event_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3139 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3140 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3141 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3142 int dw_event_reset (HEV eve) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3143 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3144 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3145 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3146 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3147 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3148 * Posts a semaphore created by dw_event_new(). Causing all threads |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3149 * waiting on this event in dw_event_wait to continue. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3150 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3151 * eve: The handle to the event returned by dw_event_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3152 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3153 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3154 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3155 int dw_event_post (HEV eve) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3156 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3157 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3158 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3159 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3160 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3161 * Waits on a semaphore created by dw_event_new(), until the |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3162 * event gets posted or until the timeout expires. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3163 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3164 * eve: The handle to the event returned by dw_event_new(). |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3165 * timeout: Number of milliseconds before timing out |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3166 * or -1 if indefinite. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3167 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3168 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3169 * DW_ERROR_TIMEOUT (2) if the timeout has expired. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3170 * Other values on other error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3171 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3172 int dw_event_wait(HEV eve, unsigned long timeout) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3173 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3174 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3175 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3176 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3177 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3178 * Closes a semaphore created by dw_event_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3179 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3180 * eve: The handle to the event returned by dw_event_new(). |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3181 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3182 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3183 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3184 int dw_event_close(HEV *eve) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3185 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3186 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3187 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3188 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3189 /* Create a named event semaphore which can be |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3190 * opened from other processes. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3191 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3192 * name: Name given to semaphore which can be opened |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3193 * by other processes. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3194 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3195 * Handle to event semaphore or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3196 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3197 HEV dw_named_event_new(char *name) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3198 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3199 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3200 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3201 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3202 /* Open an already existing named event semaphore. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3203 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3204 * name: Name given to semaphore which can be opened |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3205 * by other processes. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3206 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3207 * Handle to event semaphore or NULL on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3208 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3209 HEV dw_named_event_get(char *name) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3210 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3211 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3212 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3213 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3214 /* Resets the event semaphore so threads who call wait |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3215 * on this semaphore will block. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3216 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3217 * eve: Handle to the semaphore obtained by |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3218 * an get or new call. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3219 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3220 * DW_ERROR_NONE (0) on success. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3221 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3222 int dw_named_event_reset(HEV eve) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3223 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3224 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3225 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3226 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3227 /* Sets the posted state of an event semaphore, any threads |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3228 * waiting on the semaphore will no longer block. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3229 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3230 * eve: Handle to the semaphore obtained by |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3231 * an get or new call. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3232 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3233 * DW_ERROR_NONE (0) on success. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3234 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3235 int dw_named_event_post(HEV eve) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3236 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3237 return DW_ERROR_GENERAL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3238 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3239 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3240 /* Waits on the specified semaphore until it becomes |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3241 * posted, or returns immediately if it already is posted. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3242 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3243 * eve: Handle to the semaphore obtained by |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3244 * an get or new call. |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3245 * timeout: Number of milliseconds before timing out |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3246 * or -1 if indefinite. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3247 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3248 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3249 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3250 int dw_named_event_wait(HEV eve, unsigned long timeout) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3251 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3252 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3253 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3254 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3255 /* Release this semaphore, if there are no more open |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3256 * handles on this semaphore the semaphore will be destroyed. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3257 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3258 * eve: Handle to the semaphore obtained by |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3259 * an get or new call. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3260 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3261 * DW_ERROR_NONE (0) on success. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3262 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3263 int dw_named_event_close(HEV eve) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3264 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3265 return DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3266 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3267 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3268 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3269 * Initializes the Dynamic Windows engine. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3270 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3271 * newthread: True if this is the only thread. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3272 * False if there is already a message loop running. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3273 * argc: Passed in from main() |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3274 * argv: Passed in from main() |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3275 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3276 * DW_ERROR_NONE (0) on success. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3277 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3278 int API dw_init(int newthread, int argc, char *argv[]) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3279 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3280 return DW_ERROR_NONE; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3281 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3282 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3283 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3284 * Allocates a shared memory region with a name. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3285 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3286 * dest: A pointer to a pointer to receive the memory address. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3287 * size: Size in bytes of the shared memory region to allocate. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3288 * name: A string pointer to a unique memory name. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3289 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3290 * Handle to shared memory or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3291 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3292 HSHM dw_named_memory_new(void **dest, int size, char *name) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3293 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3294 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3295 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3296 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3297 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3298 * Aquires shared memory region with a name. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3299 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3300 * dest: A pointer to a pointer to receive the memory address. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3301 * size: Size in bytes of the shared memory region to requested. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3302 * name: A string pointer to a unique memory name. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3303 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3304 * Handle to shared memory or NULL on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3305 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3306 HSHM dw_named_memory_get(void **dest, int size, char *name) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3307 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3308 return NULL; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3309 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3310 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3311 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3312 * Frees a shared memory region previously allocated. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3313 * Parameters: |
1008
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3314 * handle: Handle obtained from dw_named_memory_new(). |
f046a2712b38
Fixes to errors in documentation comments while importing them into the help database.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1007
diff
changeset
|
3315 * ptr: The memory address aquired with dw_named_memory_new(). |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3316 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3317 * DW_ERROR_NONE (0) on success or DW_ERROR_UNKNOWN (-1) on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3318 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3319 int dw_named_memory_free(HSHM handle, void *ptr) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3320 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3321 int rc = DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3322 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3323 return rc; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3324 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3325 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3326 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3327 * Creates a new thread with a starting point of func. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3328 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3329 * func: Function which will be run in the new thread. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3330 * data: Parameter(s) passed to the function. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3331 * stack: Stack size of new thread (OS/2 and Windows only). |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3332 * Returns: |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3333 * Thread ID on success or DW_ERROR_UNKNOWN (-1) on error. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3334 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3335 DWTID dw_thread_new(void *func, void *data, int stack) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3336 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3337 return (DWTID)DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3338 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3339 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3340 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3341 * Ends execution of current thread immediately. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3342 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3343 void dw_thread_end(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3344 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3345 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3346 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3347 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3348 * Returns the current thread's ID. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3349 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3350 DWTID dw_thread_id(void) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3351 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3352 return (DWTID)0; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3353 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3354 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3355 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3356 * Execute and external program in a seperate session. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3357 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3358 * program: Program name with optional path. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3359 * type: Either DW_EXEC_CON or DW_EXEC_GUI. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3360 * params: An array of pointers to string arguements. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3361 * Returns: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3362 * Process ID on success or DW_ERROR_UNKNOWN (-1) on error. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3363 */ |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3364 int dw_exec(char *program, int type, char **params) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3365 { |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3366 int ret = DW_ERROR_UNKNOWN; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3367 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3368 return ret; |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3369 } |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3370 |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3371 /* |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3372 * Loads a web browser pointed at the given URL. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3373 * Parameters: |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3374 * url: Uniform resource locator. |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3375 * Returns: |
1115
03cd2f3e929d
Fixed a documentation and template error regarding dw_browse() return code.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1089
diff
changeset
|
3376 * DW_ERROR_UNKNOWN (-1) on error; DW_ERROR_NONE (0) or a positive Process ID on success. |
1010
9af693aafa93
Attempt at implmenting dw_window_get_font on OS/2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1008
diff
changeset
|
3377 */ |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3378 int dw_browse(char *url) |
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3379 { |
1115
03cd2f3e929d
Fixed a documentation and template error regarding dw_browse() return code.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1089
diff
changeset
|
3380 return DW_ERROR_UNKNOWN; |
988
56077b50be7e
Reset line endings to LF from CRLF
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
987
diff
changeset
|
3381 } |