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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user