corrected wxCHECK messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -387,7 +387,7 @@ bool wxRadioBox::Enable(int item, bool enable)
|
|||||||
bool wxRadioBox::IsItemEnabled(int item) const
|
bool wxRadioBox::IsItemEnabled(int item) const
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( IsValid(item), false,
|
wxCHECK_MSG( IsValid(item), false,
|
||||||
wxT("invalid item in wxRadioBox::Enable()") );
|
wxT("invalid item in wxRadioBox::IsItemEnabled()") );
|
||||||
|
|
||||||
return ::IsWindowEnabled((*m_radioButtons)[item]) != 0;
|
return ::IsWindowEnabled((*m_radioButtons)[item]) != 0;
|
||||||
}
|
}
|
||||||
@@ -412,7 +412,7 @@ bool wxRadioBox::Show(int item, bool show)
|
|||||||
bool wxRadioBox::IsItemShown(int item) const
|
bool wxRadioBox::IsItemShown(int item) const
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( IsValid(item), false,
|
wxCHECK_MSG( IsValid(item), false,
|
||||||
wxT("invalid item in wxRadioBox::Enable()") );
|
wxT("invalid item in wxRadioBox::IsItemShown()") );
|
||||||
|
|
||||||
// don't use IsWindowVisible() here because it would return false if the
|
// don't use IsWindowVisible() here because it would return false if the
|
||||||
// radiobox itself is hidden while we want to only return false if this
|
// radiobox itself is hidden while we want to only return false if this
|
||||||
|
Reference in New Issue
Block a user