From 39d90cccaa8ec807ba5fdb487a5517272162aae6 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Tue, 29 Sep 1998 01:23:40 +0000 Subject: [PATCH] fixed menu casting problem. --- widget/src/windows/nsMenu.cpp | 2 +- widget/src/windows/nsMenuBar.cpp | 2 +- widget/src/windows/nsPopUpMenu.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/widget/src/windows/nsMenu.cpp b/widget/src/windows/nsMenu.cpp index 6e5cc745d3c..a057b4f1e32 100644 --- a/widget/src/windows/nsMenu.cpp +++ b/widget/src/windows/nsMenu.cpp @@ -126,7 +126,7 @@ NS_METHOD nsMenu::Create(nsIWidget *aParent, } } - mWnd = CreatePopupMenu(); + mWnd = (HMENU)CreatePopupMenu(); if (aParent) { aParent->AddChild(this); diff --git a/widget/src/windows/nsMenuBar.cpp b/widget/src/windows/nsMenuBar.cpp index 84e6408892d..5f0cfd99f31 100644 --- a/widget/src/windows/nsMenuBar.cpp +++ b/widget/src/windows/nsMenuBar.cpp @@ -126,7 +126,7 @@ NS_METHOD nsMenuBar::Create(nsIWidget *aParent, } } - mWnd = CreatePopupMenu(); + mWnd = (HMENU)CreateMenu(); if (aParent) { aParent->AddChild(this); diff --git a/widget/src/windows/nsPopUpMenu.cpp b/widget/src/windows/nsPopUpMenu.cpp index 88dc6b1a8df..9896b1fccc0 100644 --- a/widget/src/windows/nsPopUpMenu.cpp +++ b/widget/src/windows/nsPopUpMenu.cpp @@ -130,7 +130,7 @@ NS_METHOD nsPopUpMenu::Create(nsIWidget *aParent, } } - mWnd = CreatePopupMenu(); + mWnd = (HMENU)CreatePopupMenu(); if (aParent) { aParent->AddChild(this);