#pragma hdrstop
#endif
+#if wxUSE_FONTMAP
+
#ifndef WX_PRECOMP
#include "wx/font.h"
#endif
// private functions
// ----------------------------------------------------------------------------
+#ifndef __WXMICROWIN__
int CALLBACK wxFontEnumeratorProc(LPLOGFONT lplf, LPTEXTMETRIC lptm,
DWORD dwStyle, LONG lParam);
+#endif
// ============================================================================
// implementation
return TRUE;
}
-#if defined(__GNUWIN32__)
+#if defined(__GNUWIN32__) && !defined(__CYGWIN10__)
#if wxUSE_NORLANDER_HEADERS
#define wxFONTENUMPROC int(*)(const LOGFONT *, const TEXTMETRIC *, long unsigned int, LPARAM)
#else
void wxFontEnumeratorHelper::DoEnumerate()
{
+#ifndef __WXMICROWIN__
HDC hDC = ::GetDC(NULL);
#ifdef __WIN32__
#endif // Win32/16
::ReleaseDC(NULL, hDC);
+#endif
}
bool wxFontEnumeratorHelper::OnFont(const LPLOGFONT lf,
// Windows callbacks
// ----------------------------------------------------------------------------
+#ifndef __WXMICROWIN__
int CALLBACK wxFontEnumeratorProc(LPLOGFONT lplf, LPTEXTMETRIC lptm,
DWORD dwStyle, LONG lParam)
{
return fontEnum->OnFont(lplf, lptm);
}
+#endif
+#endif // wxUSE_FONTMAP