title: Redraw in parent window in child window's onPaint in mfc
body: <p>I am trying to implement something like this in mfc:</p>
  
  <p>A parent window that contains a few child windows. I want some horizontal and vertical grid lines to appear around a child window when ever the window is being dragged anywhere inside the parent. For that, I am tracking movement in my     OnPaint() handler for the child and accessing the parent and drawing these grid lines around the child. But its not behaving the way I want it to. </p>
  
  <p>My guess is that the child's     OnPaint() only updates the child's drawing region, so even if I do access the parent's DC, I cant draw anything on it unless it's being redrawn?</p>
  
  <p>Can anybody suggest a neater method of achieving above functionality? What am I doing wrong? I need everything to happen in the child's     OnPaint()</p>