Ejemplo n.º 1
0
CEditLog::CEditLog( 
        HWND hEdit,
        UINT nTimerDelay
        )
{
    m_bMessagePending = false;
    m_nTimerID        = 0;
    m_nTimerDelay    = nTimerDelay;
    ::InitializeCriticalSection( &m_csLock );
    SetEditCtrl( hEdit );
}
Ejemplo n.º 2
0
void CEditSliderCtrl::SetInfo(const INFO& Info, CNumEdit *Edit)
{
    SetEditCtrl(Edit);
    SetRange(Info.RangeMin, Info.RangeMax, TRUE);
    SetLogBase(Info.LogBase);
    SetScale(Info.SliderScale);
    SetDefaultPos(Info.DefaultPos);
    SetTicCount(Info.TicCount);
    if (m_Edit != NULL) {
        m_Edit->SetScale(Info.EditScale);
        m_Edit->SetPrecision(Info.EditPrecision);
    }
}