pos = GetMenuItemCount() - 1;
}
- // adjust position to account for the title, if any
- if ( !m_title.empty() )
+ // adjust position to account for the title of a popup menu, if any
+ if ( !GetMenuBar() && !m_title.empty() )
pos += 2; // for the title itself and its separator
BOOL ok = false;