void CGraphListCtrl::SetSortByHorScroll(bool bSortByHor ) //按水平方向摆放图 { m_bSortByFixedRow = bSortByHor; CalItemSize(); ResetScrollBars(); }
/**\brief Adds children to the Tab object. */ Tab *Tab::AddChild( Widget *widget ){ assert( widget != NULL ); Container::AddChild( widget ); // Check to see if widget is past the bounds. ResetScrollBars(); return this; }
BOOL CDetailGridCtrl::SetRowCount(int nRows) { ASSERT(nRows >= 0); if (nRows == GetRowCount()) return TRUE; if (nRows < m_nFixedRows) m_nFixedRows = nRows; if (m_idCurrentCell.row >= nRows) SetFocusCell(-1,-1); int addedRows = nRows - GetRowCount(); m_nRows = nRows; m_arRowHeights.SetSize(nRows); if (addedRows > 0) { int startRow = nRows - addedRows; for (int row = startRow; row < GetRowCount(); row++) { m_arRowHeights[row] = m_nDefCellHeight; } } if (GetSafeHwnd() && m_bAllowDraw) { ResetScrollBars(); Invalidate(); } return TRUE; }
/**\brief Adds a child to the current container. */ Container *Container::AddChild( Widget *widget ) { assert( widget != NULL ); if( widget != NULL ) { children.push_back( widget ); } // Check to see if widget is past the bounds. ResetScrollBars(); return this; }
/*** 设定曲线显示的资产数据序列 */ void CCurveButton::SetAssetSerial( CAssetSerialContainer & src, double dStartAmount ) { m_AssetSerial.Copy( src ); m_dStartAmount = dStartAmount; ASSERT( m_dStartAmount > 1e-4 ); ResetScrollBars( ); }
void CGraphListCtrl::OnSize(UINT nType, int cx, int cy) { if (!::IsWindow(m_hWnd)) { return; } CalItemSize(); ResetScrollBars(); CWnd::OnSize(nType, cx, cy); }
void PEXPORT KpsLayoutWidgetPaint(HWND hWnd, unsigned msg, WORD wParam, long lParam) { HDC hDC; RECT rcWidget; if (!wParam) EmptyWidgetPaint(hWnd); if (hWnd == CurrentWidgetInfo.hWnd && CurrentWidgetInfo.bDotsDrawn && !IsIconic(hWnd)) { ResetScrollBars(hWnd, FALSE); GetWindowRect(hWnd, &rcWidget); hDC = GetDC(hWnd); DrawDragBlobs(hWnd, hDC, rcWidget); DrawDragDots(hWnd, hDC, rcWidget, FALSE); hDC = ReleaseDC(hWnd, hDC); } else if (hWnd != CurrentWidgetInfo.hWnd) ResetScrollBars(hWnd, TRUE); }
void CGraphListCtrl::ReDraw( ) { ResetScrollBars(); Invalidate(); }
BOOL CCurveButton::Initialize( ) { InitializeFlatSB(GetSafeHwnd()); ResetScrollBars( ); return TRUE; }