#include "wx/icon.h"
-#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxIconBase)
-#endif
// ============================================================================
// implementation
void wxIconRefData::Free()
{
- if ( m_hIcon )
- ::DestroyIcon((HICON) m_hIcon);
+ if (m_hIcon)
+ ::WinFreeFileIcon((HPOINTER)m_hIcon);
}
// ----------------------------------------------------------------------------
, int nDesiredHeight
)
{
- wxGDIImageHandler* pHandler = FindHandler(type);
+ wxGDIImageHandler* pHandler = FindHandler(lType);
+ HPS hPs = NULLHANDLE;
UnRef();
m_refData = new wxIconRefData;
if (pHandler)
return(pHandler->Load( this
,rFilename
+ ,hPs
,lType
,nDesiredWidth
,nDesiredHeight