]>
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 #if !USE_SHARED_LIBRARIES
33 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxIconBase
)
36 // ============================================================================
38 // ============================================================================
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 void wxIconRefData::Free()
47 ::DestroyIcon((HICON
) m_hIcon
);
50 // ----------------------------------------------------------------------------
52 // ----------------------------------------------------------------------------
59 const char WXUNUSED(bits
)[]
60 , int WXUNUSED(nWidth
)
61 , int WXUNUSED(nHeight
)
67 const wxString
& rIconFile
84 bool wxIcon::LoadFile(
85 const wxString
& rFilename
91 wxGDIImageHandler
* pHandler
= FindHandler(type
);
94 m_refData
= new wxIconRefData
;
97 return(pHandler
->Load( this