text: .
  PyCWnd.ScreenToClient()
  The final step to complete the View is to draw all your strokes whenever the window requires updating. This code is simple: you iterate over the list of strokes for the document, drawing lines between the coordinates. To obtain this behavior, use the code:
  View
  def OnDraw(self, dc):
  # All we need to is get the strokes, and paint them.
  doc = self.GetDocument()
  for startPos, endPos in doc.GetStrokes():
  dc.MoveTo(startPos)
  dc.LineTo(endPos).
  pywin.framework.intpyapp
  CApp
  pywin.framework.app
  This makes the application object small and simple. You obviously may need to enhance certain aspects; in this case, you should use the pywin.framework modules as a guide. The minimal application object looks like:
  pywin.framework
  #.
  pywin.framework.startup:
  DocumentTemplate
  win32ui.IDR_PYTHONT.
  win32ui.LoadLibrary().