fixes for icon-inherits-from-bitmap mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,8 +67,13 @@ wxCursorRefData::wxCursorRefData()
|
|||||||
|
|
||||||
void wxCursorRefData::Free()
|
void wxCursorRefData::Free()
|
||||||
{
|
{
|
||||||
if ( m_hCursor && m_destroyCursor )
|
if ( m_hCursor )
|
||||||
|
{
|
||||||
|
if ( m_destroyCursor )
|
||||||
::DestroyCursor((HCURSOR)m_hCursor);
|
::DestroyCursor((HCURSOR)m_hCursor);
|
||||||
|
|
||||||
|
m_hCursor = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -62,7 +62,11 @@
|
|||||||
void wxIconRefData::Free()
|
void wxIconRefData::Free()
|
||||||
{
|
{
|
||||||
if ( m_hIcon )
|
if ( m_hIcon )
|
||||||
|
{
|
||||||
::DestroyIcon((HICON) m_hIcon);
|
::DestroyIcon((HICON) m_hIcon);
|
||||||
|
|
||||||
|
m_hIcon = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user