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:
parent
72e7876ba5
commit
032af30f52
@ -67,8 +67,13 @@ wxCursorRefData::wxCursorRefData()
|
||||
|
||||
void wxCursorRefData::Free()
|
||||
{
|
||||
if ( m_hCursor && m_destroyCursor )
|
||||
::DestroyCursor((HCURSOR)m_hCursor);
|
||||
if ( m_hCursor )
|
||||
{
|
||||
if ( m_destroyCursor )
|
||||
::DestroyCursor((HCURSOR)m_hCursor);
|
||||
|
||||
m_hCursor = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -62,7 +62,11 @@
|
||||
void wxIconRefData::Free()
|
||||
{
|
||||
if ( m_hIcon )
|
||||
{
|
||||
::DestroyIcon((HICON) m_hIcon);
|
||||
|
||||
m_hIcon = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user