wxCoord DeviceToLogicalXRel(wxCoord x)
Convert device X coordinate to relative logical coordinate, using the current mapping mode but ignoring the x axis orientation. Use this function for converting a width, for example.