X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f2c3ee9a0fb0457f81f4d70ad0077bf092b8a6a..9705fbe9042fd947be91ad3242b70df8c5274187:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 90f5da5765..520e547064 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -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