No real changes, just use symbolic constants with BM_SETCHECK.
Use BST_CHECKED and BST_UNCHECKED instead of implicitly relying on their values being 1 and 0. See #11665. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,7 +144,7 @@ void wxToggleButton::SetValue(bool val)
|
||||
}
|
||||
else
|
||||
{
|
||||
::SendMessage(GetHwnd(), BM_SETCHECK, val, 0);
|
||||
::SendMessage(GetHwnd(), BM_SETCHECK, val ? BST_CHECKED : BST_UNCHECKED, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user