Ensure that wxGenericListCtrl always has wx[HV]SCROLL styles.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jul 2010 10:43:57 +0000 (10:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jul 2010 10:43:57 +0000 (10:43 +0000)
commite61fedabe7125c45229ef029289511220ccf2408
tree2a57563954e8d07fa1a28e87c43365d013edd75e
parent7e843c0e2bc193f4e76c6e428e795fe7786f02f8
Ensure that wxGenericListCtrl always has wx[HV]SCROLL styles.

Although these styles are unconditionally added when creating the window they
could be reset by calling SetWindowStyleFlag() later and this in fact happened
when changing control mode from wxListbook.

As it doesn't make sense to have wxListCtrl without these styles, also add
them unconditionally in overridden SetWindowStyleFlag() as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/listctrl.cpp