git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37956
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxFontEnumeratorHelper::DoEnumerate()
{
MenuHandle menu;
void wxFontEnumeratorHelper::DoEnumerate()
{
MenuHandle menu;
short lines;
menu = NewMenu( 32000, "\pFont" );
short lines;
menu = NewMenu( 32000, "\pFont" );
for ( int i = 1; i < lines + 1; i ++ )
{
for ( int i = 1; i < lines + 1; i ++ )
{
+ wxString c_name ;
+#if TARGET_API_MAC_CARBON
+ CFStringRef menutext ;
+ c_name = wxEmptyString ;
+ if ( CopyMenuItemTextAsCFString (menu, i, &menutext) == noErr )
+ {
+ c_name = wxMacCFStringHolder(menutext).AsString(wxLocale::GetSystemEncoding());
+ }
+#else
+ Str255 p_name;
GetMenuItemText( menu, i, p_name );
GetMenuItemText( menu, i, p_name );
- wxString c_name = wxMacMakeStringFromPascal( p_name );
+ c_name = wxMacMakeStringFromPascal( p_name );
+#endif