comparison dw.h @ 185:f55677513954

Updated the menu code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 19 Dec 2002 04:16:32 +0000
parents b8caec82a4d2
children b023d363fc09
comparison
equal deleted inserted replaced
184:4ec906d40ce2 185:f55677513954
147 HPS hps; 147 HPS hps;
148 HBITMAP hbm; 148 HBITMAP hbm;
149 HWND handle; 149 HWND handle;
150 } *HPIXMAP; 150 } *HPIXMAP;
151 151
152 typedef struct _hmenui { 152 typedef HWND HMENUI;
153 HWND menu;
154 } *HMENUI;
155
156 typedef HMODULE HMOD; 153 typedef HMODULE HMOD;
154
155 #define DW_NOMENU NULLHANDLE
157 156
158 extern HAB dwhab; 157 extern HAB dwhab;
159 extern HMQ dwhmq; 158 extern HMQ dwhmq;
160 #endif 159 #endif
161 160
326 } *HPIXMAP; 325 } *HPIXMAP;
327 326
328 typedef struct _hmenui { 327 typedef struct _hmenui {
329 HMENU menu; 328 HMENU menu;
330 HWND hwnd; 329 HWND hwnd;
331 } *HMENUI; 330 } HMENUI;
332 331
332 static HMENUI DW_NOMENU = { 0, 0 };
333 #endif 333 #endif
334 334
335 typedef struct _item { 335 typedef struct _item {
336 /* Item type - Box or Item */ 336 /* Item type - Box or Item */
337 int type; 337 int type;
513 unsigned long width, height; 513 unsigned long width, height;
514 GdkPixmap *pixmap; 514 GdkPixmap *pixmap;
515 HWND handle; 515 HWND handle;
516 } *HPIXMAP; 516 } *HPIXMAP;
517 517
518 typedef struct _hmenui { 518 typedef GtkWidget *HMENUI;
519 GtkWidget *menu; 519
520 } *HMENUI; 520 #define DW_NOMENU NULL
521 521
522 typedef struct _resource_struct { 522 typedef struct _resource_struct {
523 long resource_max, *resource_id; 523 long resource_max, *resource_id;
524 char **resource_data; 524 char **resource_data;
525 } DWResources; 525 } DWResources;