#include <windowsx.h>
#include <tchar.h>
#include <ole2.h>
+#include <shellapi.h>
#include <commctrl.h>
#include <aygshell.h>
wxCHECK_MSG( pos < GetMenuCount(), wxEmptyString,
wxT("invalid menu index in wxMenuBar::GetLabelTop") );
- return m_titles[pos];
+ return wxMenuItem::GetLabelFromText(m_titles[pos]);
}
// ---------------------------------------------------------------------------