From 8d7534889482766efade52d2940e8e32fc65e270 Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Tue, 17 Jul 2001 08:27:42 +0000
Subject: [PATCH] don't use static box as a parent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/statbox.tex | 5 +++++
 src/msw/window.cpp        | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/docs/latex/wx/statbox.tex b/docs/latex/wx/statbox.tex
index e4c38bbe8a..a3ce189d80 100644
--- a/docs/latex/wx/statbox.tex
+++ b/docs/latex/wx/statbox.tex
@@ -3,6 +3,11 @@
 A static box is a rectangle drawn around other panel items to denote
 a logical grouping of items.
 
+Please note that a static box should {\bf not} be used as the parent for the
+controls it contains, instead they should be siblings of each other. Although
+using a static box as a parent might work in some versions of wxWindows, it
+results in a crash under, for example, wxGTK.
+
 \wxheading{Derived from}
 
 \helpref{wxControl}{wxcontrol}\\
diff --git a/src/msw/window.cpp b/src/msw/window.cpp
index c2ab65d03e..e64c745c2d 100644
--- a/src/msw/window.cpp
+++ b/src/msw/window.cpp
@@ -47,8 +47,7 @@
     #include "wx/button.h"
     #include "wx/msgdlg.h"
     #include "wx/settings.h"
-
-    #include <stdio.h>
+    #include "wx/statbox.h"
 #endif
 
 #if wxUSE_OWNER_DRAWN
-- 
2.50.0

