// m_mainWidget holds the menubar, the toolbar and the client
// area, which is represented by m_wxwindow.
+#if wxUSE_MENUS_NATIVE
int menubarHeight = 0;
+#endif
+
#if wxUSE_MENUS_NATIVE
if (HasVisibleMenubar())
{
(m_frameToolBar->m_widget->parent == m_mainWidget))
{
int xx = m_miniEdge;
- int yy = m_miniEdge + m_miniTitle + menubarHeight;
+ int yy = m_miniEdge + m_miniTitle
+#if wxUSE_MENUS_NATIVE
+ + menubarHeight
+#endif
+ ;
m_frameToolBar->m_x = xx;
m_frameToolBar->m_y = yy;
yy = GetClientSize().y;
#if wxUSE_MENUS_NATIVE
yy += m_menuBarHeight;
-#endif // wxUSE_MENU_NATIVE
+#endif // wxUSE_MENUS_NATIVE
m_frameToolBar->m_x = xx;
m_frameToolBar->m_y = yy;
ww = m_width - 2*m_miniEdge;