Fixed erroneous selection of content in comboboxes within static boxes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-04-25 13:49:53 +00:00
parent f4dd8614fa
commit 3bce55ac06
2 changed files with 14 additions and 2 deletions

View 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