some os/2 icon-bitmap fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-12-06 05:01:46 +00:00
parent 58b1642453
commit 43543d985b
13 changed files with 202 additions and 158 deletions

View File

@@ -43,8 +43,8 @@
void wxIconRefData::Free()
{
if ( m_hIcon )
::DestroyIcon((HICON) m_hIcon);
if (m_hIcon)
::WinFreeFileIcon((HPOINTER)m_hIcon);
}
// ----------------------------------------------------------------------------
@@ -88,7 +88,7 @@ bool wxIcon::LoadFile(
, int nDesiredHeight
)
{
wxGDIImageHandler* pHandler = FindHandler(type);
wxGDIImageHandler* pHandler = FindHandler(lType);
UnRef();
m_refData = new wxIconRefData;