]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/utils/wxrcedit/preview.cpp
Removing wxPlotWindow.
[wxWidgets.git] / contrib / utils / wxrcedit / preview.cpp
index 7ed924bb1c2c0c09d7f3db7fa886951de322a6aa..b1085bee8a52bbee42d838c83738663665d3910c 100644 (file)
@@ -61,7 +61,9 @@ PreviewFrame *PreviewFrame::Get()
 }
 
 PreviewFrame::PreviewFrame()
-    : wxFrame(NULL, -1, _("Preview"))
+    : wxFrame(EditorFrame::Get(), -1, _("Preview"),
+              wxDefaultPosition, wxDefaultSize, 
+              wxDEFAULT_FRAME_STYLE | wxFRAME_NO_TASKBAR | wxFRAME_TOOL_WINDOW)
 {
     m_Dirty = FALSE;
     ms_Instance = this;
@@ -89,6 +91,8 @@ PreviewFrame::PreviewFrame()
     m_Splitter->SplitHorizontally(m_ScrollWin, m_LogCtrl, cfg->Read(_T("previewframe_sash"), 300));
 
     CreateStatusBar();
+
+    SetSize(GetSize()); // refresh: MSW needs it
 }