]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
moved WM_PRINTCLIENT from wxRadioBox to wxStaticBox to allow using it as parent for...
[wxWidgets.git] / src / msw / combobox.cpp
index 90f5da5765995ebdcfa0dd02bdee792cda97676a..520e547064862e0af3478b81ac0c488ddcfa3c51 100644 (file)
@@ -259,6 +259,9 @@ WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
             break;
 
         case WM_SIZE:
+        // wxStaticBox can generate this message, when modifying the control's style.
+        // This causes the content of the combobox to be selected, for some reason.
+        case WM_STYLECHANGED:
             {
                 // combobox selection sometimes spontaneously changes when its
                 // size changes, restore it to the old value if necessary