parameters: (self, dc)
docstring: Shifts the :class:`DC` origin to match the position of the main window horizontal
          scrollbar: this allows us to always use logical coordinates.
  
          :param `dc`: an instance of :class:`DC`.
docstring_summary: Shifts the :class:`DC` origin to match the position of the main window horizontal
          scrollbar: this allows us to always use logical coordinates.
docstring_tokens: Shifts the : class : DC origin to match the position of the main window horizontal scrollbar : this allows us to always use logical coordinates .
function: def AdjustDC(self, dc):
          """
          Shifts the :class:`DC` origin to match the position of the main window horizontal
          scrollbar: this allows us to always use logical coordinates.
  
          :param `dc`: an instance of :class:`DC`.        
          """
          
          xpix, dummy = self._owner.GetScrollPixelsPerUnit()
          x, dummy = self._owner.GetViewStart()
  
          # account for the horz scrollbar offset
          dc.SetDeviceOrigin(-x * xpix, 0)
function_tokens: def AdjustDC ( self , dc ) : xpix , dummy = self . _owner . GetScrollPixelsPerUnit ( ) x , dummy = self . _owner . GetViewStart ( ) # account for the horz scrollbar offset dc . SetDeviceOrigin ( - x * xpix , 0 )