+ // Attribute applies to menuitems, fsState to listbox and other controls
+ //
+ if (pMeasureStruct->fsAttribute == pMeasureStruct->fsAttributeOld)
+ eAction = wxOwnerDrawn::wxODDrawAll;
+ else
+ eAction = wxOwnerDrawn::wxODSelectChanged;
+
+ return(vMenuItem.OnDrawItem( vDc
+ ,vRect
+ ,eAction
+ ,(wxOwnerDrawn::wxODStatus)pMeasureStruct->fsAttribute
+ ));
+ //
+ // leave the fsAttribute and fsOldAttribute unchanged. If different,
+ // the system will do the highlight or fraeming or disabling for us,
+ // otherwise, we'd have to do it ourselves.