]>
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
72 // A very poor hack, but we have to have separate icon files from windows
73 // So we have a modified name where replace the last three characters
74 // with os2. Also need the extension.
76 wxString sOs2Name
= rIconFile
.Mid(0, rIconFile
.Length() - 3);
78 sOs2Name
+= "Os2.ico";
90 bool wxIcon::LoadFile(
91 const wxString
& rFilename
101 wxGDIImageHandler
* pHandler
= FindHandler(lType
);
104 return(pHandler
->Load( this