]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tglbtn.cpp
Tries to fix wxListBox focus problems.
[wxWidgets.git] / src / msw / tglbtn.cpp
index f428a631fec81636c04bd1f820bdd08958cb2d08..58889e0fb962ac069b6a6d216f1c6ab7e5caf054 100644 (file)
@@ -86,6 +86,10 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
 #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;