#include "wx/fontdlg.h"
-#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
- #include <commdlg.h>
+#if !defined(__WIN32__) || defined(__SALFORDC__)
+#include <windows.h>
+#include <commdlg.h>
#endif
#include "wx/msw/private.h"
// wxFontDialog
// ----------------------------------------------------------------------------
-wxFontDialog::wxFontDialog()
-{
- m_parent = NULL;
-}
-
-wxFontDialog::wxFontDialog(wxWindow *parent, wxFontData *data)
-{
- Create(parent, data);
-}
-
-bool wxFontDialog::Create(wxWindow *parent, wxFontData *data)
-{
- m_parent = parent;
-
- wxCHECK_MSG( data, FALSE, _T("no font data in wxFontDialog") );
-
- m_fontData = *data;
-
- return TRUE;
-}
-
int wxFontDialog::ShowModal()
{
DWORD flags = CF_SCREENFONTS | CF_NOSIMULATIONS;