Add public (but not documented) wxCheckBox::MSWMakeOwnerDrawn().

It can be useful to explicitly make a check box owner drawn, so make the
private MakeOwnerDrawn() public and add "MSW" prefix to it to allow doing this
from the user code.

Closes #14679.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-09-20 22:15:37 +00:00
parent 652aa9360f
commit 9b9a7c3331
2 changed files with 5 additions and 5 deletions

View File

@@ -273,7 +273,7 @@ bool wxCheckBox::SetForegroundColour(const wxColour& colour)
// the only way to change the checkbox foreground colour under Windows XP
// is to owner draw it
if ( wxUxThemeEngine::GetIfActive() )
MakeOwnerDrawn(colour.IsOk());
MSWMakeOwnerDrawn(colour.IsOk());
return true;
}
@@ -284,7 +284,7 @@ bool wxCheckBox::IsOwnerDrawn() const
(::GetWindowLong(GetHwnd(), GWL_STYLE) & BS_OWNERDRAW) == BS_OWNERDRAW;
}
void wxCheckBox::MakeOwnerDrawn(bool ownerDrawn)
void wxCheckBox::MSWMakeOwnerDrawn(bool ownerDrawn)
{
long style = ::GetWindowLong(GetHwnd(), GWL_STYLE);