Merge branch 'rename-listctrl-checkbox-methods' of https://github.com/discnl/wxWidgets

Use consistent case for wxListCtrl::{Has,Enable}CheckBoxes() methods.

Closes https://github.com/wxWidgets/wxWidgets/pull/275
This commit is contained in:
Vadim Zeitlin
2016-04-23 18:52:47 +02:00
10 changed files with 52 additions and 45 deletions

View File

@@ -1306,13 +1306,13 @@ wxFont wxListCtrl::GetItemFont( long item ) const
return f;
}
bool wxListCtrl::HasCheckboxes() const
bool wxListCtrl::HasCheckBoxes() const
{
const DWORD currStyle = ListView_GetExtendedListViewStyle(GetHwnd());
return (currStyle & LVS_EX_CHECKBOXES) != 0;
}
bool wxListCtrl::EnableCheckboxes(bool enable)
bool wxListCtrl::EnableCheckBoxes(bool enable)
{
(void)ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES,
enable ? LVS_EX_CHECKBOXES : 0);