// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dialog.h"
#endif
+#include "wx/wxprec.h"
+
#include "wx/dialog.h"
#include "wx/utils.h"
#include "wx/frame.h"
//wxList wxModelessWindows; // Frames and modeless dialogs
extern wxList wxPendingDelete;
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow)
BEGIN_EVENT_TABLE(wxDialog, wxDialogBase)
EVT_CLOSE(wxDialog::OnCloseWindow)
END_EVENT_TABLE()
-#endif
-
void wxDialog::Init()
{
m_isModalStyle = false;
wxModalDialogs.Append(this);
+ SetFocus() ;
+
#if TARGET_CARBON
BeginAppModalStateForWindow( (WindowRef) MacGetWindowRef()) ;
#else