浏览代码

Merge pull request #1029 from Lopuska/patch-3

Intel graphics bugfix
LuisAntonRebollo 10 年之前
父节点
当前提交
ef2a843dcd
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Engine/source/platformWin32/menus/menuBarWin32.cpp

+ 2 - 0
Engine/source/platformWin32/menus/menuBarWin32.cpp

@@ -133,6 +133,7 @@ void MenuBar::attachToCanvas(GuiCanvas *owner, S32 pos)
    }
    }
 
 
    HWND hWindow = pWindow->getHWND();
    HWND hWindow = pWindow->getHWND();
+   SetMenu(hWindow, hWindowMenu);
    DrawMenuBar(hWindow);
    DrawMenuBar(hWindow);
 
 
 }
 }
@@ -165,6 +166,7 @@ void MenuBar::removeFromCanvas()
    }
    }
 
 
    HWND hWindow = pWindow->getHWND();
    HWND hWindow = pWindow->getHWND();
+   SetMenu(hWindow, NULL);
    DrawMenuBar(hWindow);
    DrawMenuBar(hWindow);
 
 
    mCanvas = NULL;
    mCanvas = NULL;