removed Win16 code (patch 905241), last version with remains of Win16 support tagged with BEFORE_WIN16_REMOVAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -163,22 +163,14 @@ void wxFontEnumeratorHelper::DoEnumerate()
|
||||
#ifdef __WXWINCE__
|
||||
::EnumFontFamilies(hDC, m_facename, (wxFONTENUMPROC)wxFontEnumeratorProc,
|
||||
(LPARAM)this) ;
|
||||
#elif defined(__WIN32__)
|
||||
#else // __WIN32__
|
||||
LOGFONT lf;
|
||||
lf.lfCharSet = m_charset;
|
||||
wxStrncpy(lf.lfFaceName, m_facename, WXSIZEOF(lf.lfFaceName));
|
||||
lf.lfPitchAndFamily = 0;
|
||||
::EnumFontFamiliesEx(hDC, &lf, (wxFONTENUMPROC)wxFontEnumeratorProc,
|
||||
(LPARAM)this, 0 /* reserved */) ;
|
||||
#else // Win16
|
||||
::EnumFonts(hDC, (LPTSTR)NULL, (FONTENUMPROC)wxFontEnumeratorProc,
|
||||
#ifdef STRICT
|
||||
(LPARAM)
|
||||
#else
|
||||
(LPSTR)
|
||||
#endif
|
||||
this);
|
||||
#endif // Win32/16
|
||||
#endif // Win32/CE
|
||||
|
||||
::ReleaseDC(NULL, hDC);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user