]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxIcon class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
27 #include "wx/os2/private.h"
32 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxIconBase
)
34 // ============================================================================
36 // ============================================================================
38 // ----------------------------------------------------------------------------
40 // ----------------------------------------------------------------------------
42 void wxIconRefData::Free()
45 ::WinFreeFileIcon((HPOINTER
)m_hIcon
);
48 // ----------------------------------------------------------------------------
50 // ----------------------------------------------------------------------------
57 const char WXUNUSED(bits
)[]
58 , int WXUNUSED(nWidth
)
59 , int WXUNUSED(nHeight
)
65 const wxString
& rIconFile
82 bool wxIcon::LoadFile(
83 const wxString
& rFilename
89 wxGDIImageHandler
* pHandler
= FindHandler(lType
);
93 m_refData
= new wxIconRefData
;
96 return(pHandler
->Load( this