Ejemplo n.º 1
0
void CGraphListCtrl::SetSortByHorScroll(bool bSortByHor ) 	  //按水平方向摆放图
{
	m_bSortByFixedRow = bSortByHor;

	CalItemSize();
	ResetScrollBars();
}
Ejemplo n.º 2
0
/**\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;
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 4
0
/**\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;
}
Ejemplo n.º 5
0
/***
	设定曲线显示的资产数据序列
*/
void CCurveButton::SetAssetSerial( CAssetSerialContainer & src, double dStartAmount )
{
	m_AssetSerial.Copy( src );
	
	m_dStartAmount	=	dStartAmount;
	ASSERT( m_dStartAmount > 1e-4 );

	ResetScrollBars( );
}
Ejemplo n.º 6
0
void CGraphListCtrl::OnSize(UINT nType, int cx, int cy)
{
	if (!::IsWindow(m_hWnd))
	{
		return;
	}

	CalItemSize();
	ResetScrollBars();
	CWnd::OnSize(nType, cx, cy);

}
Ejemplo n.º 7
0
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);
}
Ejemplo n.º 8
0
void CGraphListCtrl::ReDraw( )
{
	ResetScrollBars();
	Invalidate();
}
Ejemplo n.º 9
0
BOOL CCurveButton::Initialize( )
{
	InitializeFlatSB(GetSafeHwnd());
	ResetScrollBars( );
	return TRUE;
}