+ case wxVERTICAL_HATCH:
+ M_BRUSHDATA->m_vBundle.usSymbol = PATSYM_VERT;
+ break;
+
+ case wxSTIPPLE:
+ if (M_BRUSHDATA->m_vStipple.IsOk())
+ {
+ ::GpiSetBitmapId( M_BRUSHDATA->m_hBrush
+ ,(USHORT)M_BRUSHDATA->m_vStipple.GetHBITMAP()
+ ,(USHORT)M_BRUSHDATA->m_vStipple.GetId()
+ );
+ ::GpiSetPatternSet( M_BRUSHDATA->m_hBrush
+ ,(USHORT)M_BRUSHDATA->m_vStipple.GetId()
+ );
+ }
+ else
+ M_BRUSHDATA->m_vBundle.usSymbol = PATSYM_SOLID;
+ break ;
+
+ case wxSOLID:
+ default:
+ M_BRUSHDATA->m_vBundle.usSymbol = PATSYM_SOLID;
+ break;
+ }
+#ifdef WXDEBUG_CREATE
+ if (M_BRUSHDATA->m_hBrush==NULL) wxError("Cannot create brush","Internal error") ;
+#endif
+ M_BRUSHDATA->m_vBundle.lColor = vPmColour;
+ M_BRUSHDATA->m_vBundle.lBackColor = RGB_WHITE;
+ M_BRUSHDATA->m_vBundle.usMixMode = FM_OVERPAINT;
+ M_BRUSHDATA->m_vBundle.usBackMixMode = BM_OVERPAINT;
+
+ bOk = (bool)::GpiSetAttrs( M_BRUSHDATA->m_hBrush
+ ,PRIM_AREA
+ ,ABB_COLOR | ABB_BACK_COLOR | ABB_MIX_MODE | ABB_BACK_MIX_MODE |
+ ABB_SET | ABB_SYMBOL | ABB_REF_POINT
+ ,ABB_SET | ABB_SYMBOL | ABB_REF_POINT
+ ,&M_BRUSHDATA->m_vBundle
+ );
+ if (!bOk)
+ {
+ vError = ::WinGetLastError(vHabmain);
+ sError = wxPMErrorToStr(vError);
+ wxLogError(wxT("Can't set Gpi attributes for an AREABUNDLE. Error: %s\n"), sError.c_str());
+ }
+ return bOk;
+ }
+ return false;
+} // end of wxBrush::RealizeResource
+
+// ----------------------------------------------------------------------------
+// wxBrush accessors
+// ----------------------------------------------------------------------------
+
+wxColour wxBrush::GetColour() const