]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tglbtn.cpp
fixes for Raise() to work correctly with both top level and child windows
[wxWidgets.git] / src / msw / tglbtn.cpp
index 353ac6526b48d417692791dc1108e992ce8359b4..58889e0fb962ac069b6a6d216f1c6ab7e5caf054 100644 (file)
@@ -81,7 +81,15 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
    m_backgroundColour = parent->GetBackgroundColour();
    m_foregroundColour = parent->GetForegroundColour();
 
+#ifndef BS_PUSHLIKE
+#define BS_PUSHLIKE 0x00001000L
+#endif
+
    long msStyle = BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_TABSTOP | WS_CHILD | WS_VISIBLE;
+
+   if ( m_windowStyle & wxCLIP_SIBLINGS )
+        msStyle |= WS_CLIPSIBLINGS;
+
 #ifdef __WIN32__
    if(m_windowStyle & wxBU_LEFT)
       msStyle |= BS_LEFT;