diff 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
line wrap: on
line diff
--- a/dw.h	Thu Dec 19 02:18:12 2002 +0000
+++ b/dw.h	Thu Dec 19 04:16:32 2002 +0000
@@ -149,11 +149,10 @@
 	HWND handle;
 } *HPIXMAP;
 
-typedef struct _hmenui {
-	HWND menu;
-} *HMENUI;
+typedef HWND HMENUI;
+typedef HMODULE HMOD;
 
-typedef HMODULE HMOD;
+#define DW_NOMENU NULLHANDLE
 
 extern HAB dwhab;
 extern HMQ dwhmq;
@@ -328,8 +327,9 @@
 typedef struct _hmenui {
 	HMENU menu;
 	HWND hwnd;
-} *HMENUI;
+} HMENUI;
 
+static HMENUI DW_NOMENU = { 0, 0 };
 #endif
 
 typedef struct _item {
@@ -515,9 +515,9 @@
     HWND handle;
 } *HPIXMAP;
 
-typedef struct _hmenui {
-	GtkWidget *menu;
-} *HMENUI;
+typedef GtkWidget *HMENUI;
+
+#define DW_NOMENU NULL
 
 typedef struct _resource_struct {
 	long resource_max, *resource_id;