+inline
+void wxDIB::Init()
+{
+ m_handle = 0;
+ m_ownsHandle = true;
+
+ m_data = NULL;
+
+ m_width =
+ m_height =
+ m_depth = 0;
+}
+
+inline
+void wxDIB::Free()
+{
+ if ( m_handle && m_ownsHandle )
+ {
+ if ( !::DeleteObject(m_handle) )
+ {
+ wxLogLastError(wxT("DeleteObject(hDIB)"));
+ }
+
+ Init();
+ }
+}
+