common\libraries\ultimate toolbox\include\oxmenubar.h(606): error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'<br /> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(2442) : see declaration of 'CWnd::GetMenu'<br /> <br /> <br /> Line 606 in oxmenubar.h is the end of a class definition. The lines below appear within the class definition<br /> class OX_CLASS_DECL COXMenuBar : public COXCoolToolBar<br /> {<br /> <br /> <br /> // --- In : <br /> // --- Out : <br /> // --- Returns: Handle to the menu that is used in the menu bar<br /> // --- Effect : Retrieves handle to the menubar menu<br /> HMENU GetMenu() const { <br /> ASSERT(::IsWindow(GetSafeHwnd()));<br /> return m_hMenu; <br /> }<br /> <br /> <br /> }<br /> <br /> <br /> The lines below appear within afxwin.h<br /> // CMenu Functions - non-Child windows only<br /> virtual CMenu* GetMenu() const;<br />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)