Exemplo n.º 1
0
void CLCDCollection::Show(BOOL bShow)
{
    LCD_OBJECT_LIST::iterator it = m_Objects.begin();
    while(it != m_Objects.end())
    {
        CLCDBase *pObject = *it;
        LCDUIASSERT(NULL != pObject);
        pObject->Show(bShow);
        ++it;
    }

    CLCDBase::Show(bShow);
}
Exemplo n.º 2
0
/****f* EZ.LCD.Wrapper/CEzLcd::SetVisible
 * NAME
 *  HRESULT CEzLcd::SetVisible -- set corresponding object to be 
 *  visible or invisible.
 * INPUTS
 *  handle          - handle to the object.
 *  visible         - set to FALSE to make object invisible, TRUE to 
 *                    make it visible (default).
 * RETURN VALUE 
 *  E_FAIL if there was an error.
 *  S_OK if no error.
 ******
 */
HRESULT CEzLcd::SetVisible(HANDLE handle, BOOL visible)
{
	CLCDBase* myObject = GetObject(handle);
    assert(NULL != myObject);
    assert(NULL != myObject);

	if (NULL != myObject && NULL != myObject)
	{        
		myObject->Show(visible);
		return S_OK;
	}

	return E_FAIL;
}