git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5237
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-# if defined (__WIN32__) && defined(STRICT)
+# if defined (__WIN32__) && defined(STRICT)
typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
# define CASTWNDPROC (WndProcCast)
# elif defined(__WIN16__)
typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
# define CASTWNDPROC (WndProcCast)
# elif defined(__WIN16__)
#if defined(__WXMSW__) // && defined(__WIN32__)
#if defined(__WXMSW__) // && defined(__WIN32__)
+#if defined(__WXDEBUG__) && defined(__WIN32__)
static wxString wxGetPrintDlgError()
{
DWORD err = CommDlgExtendedError();
static wxString wxGetPrintDlgError()
{
DWORD err = CommDlgExtendedError();
-// I've no idea what __GNUWIN32_OLD__ is. Anyway, I had to add the 2nd condition
-// for Cygwin b20 (JACS)
-#if (defined(__GNUWIN32_OLD__) || defined(__GNUWIN32__)) && !defined(__MINGW32__)
+#if defined(__GNUWIN32__) && !defined(__MINGW32__)
#define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
#else
#define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
#else
- #define wxFONTENUMPROC FONTENUMPROC
+ #define wxFONTENUMPROC FONTENUMEXPROC
#endif
void wxFontEnumeratorHelper::DoEnumerate()
#endif
void wxFontEnumeratorHelper::DoEnumerate()
+ size_t GetCount() const { return m_selections.GetCount(); }
+
private:
wxArrayTreeItemIds& m_selections;
};
private:
wxArrayTreeItemIds& m_selections;
};
{
TraverseSelections selector(this, selections);
{
TraverseSelections selector(this, selections);
- return selections.GetCount();
+ return selector.GetCount();
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------