void CSimpleSplitter::OnLButtonUp(UINT nFlags, CPoint point) { InvertTracker(); ReleaseCapture(); m_orig[m_nTrackIndex] = m_nTracker; RecalcSizes(); }
void CSimpleSplitter::OnSize(UINT nType, int cx, int cy) { CWnd::OnSize(nType, cx, cy); WINDOWPLACEMENT wp; GetWindowPlacement(&wp); if(!(wp.rcNormalPosition.left == 0 && wp.rcNormalPosition.top == 0 && wp.rcNormalPosition.right == 0 && wp.rcNormalPosition.bottom == 0)) RecalcSizes(); }
void wxMultiCellSizer :: DrawGridLines(wxDC& dc) { RecalcSizes(); int maxW = Sum(m_maxWidth, m_cell_count.GetWidth()); int maxH = Sum(m_maxHeight, m_cell_count.GetHeight()); int x; // Draw the columns dc.SetPen(* m_pen); for (x = 1; x < m_cell_count.GetWidth(); x++) { int colPos = Sum(m_maxWidth, x) ; dc.DrawLine(colPos, 0, colPos, maxH); } // Draw the rows for (x = 1; x < m_cell_count.GetHeight(); x++) { int rowPos = Sum(m_maxHeight, x); dc.DrawLine(0, rowPos, maxW, rowPos); } }