Ignore:
Timestamp:
Aug 26, 2012, 6:39:30 AM (12 years ago)
Author:
roman
Message:
 
Location:
trunk/Utilities/CaptureClock
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/CaptureClock/CaptureClock_i.c

    r103 r104  
    77
    88 /* File created by MIDL compiler version 7.00.0555 */
    9 /* at Sun Aug 26 16:17:50 2012
     9/* at Sun Aug 26 16:38:39 2012
    1010 */
    1111/* Compiler settings for CaptureClock.idl:
  • trunk/Utilities/CaptureClock/CaptureClock_i.h

    r103 r104  
    55
    66 /* File created by MIDL compiler version 7.00.0555 */
    7 /* at Sun Aug 26 16:17:50 2012
     7/* at Sun Aug 26 16:38:39 2012
    88 */
    99/* Compiler settings for CaptureClock.idl:
  • trunk/Utilities/CaptureClock/MainDialog.h

    r103 r104  
    417417                return pCapturePin ? pCapturePin : pAssumedCapturePin;
    418418        }
     419        VOID UpdateControls()
     420        {
     421                m_VideoDeviceComboBox.EnableWindow(m_FilterGraph.m_pFilterGraph == NULL);
     422                m_VideoDeviceComboBox.GetWindow(GW_HWNDPREV).EnableWindow(m_VideoDeviceComboBox.IsWindowEnabled());
     423                m_AudioDeviceComboBox.EnableWindow(m_FilterGraph.m_pFilterGraph == NULL);
     424                m_AudioDeviceComboBox.GetWindow(GW_HWNDPREV).EnableWindow(m_AudioDeviceComboBox.IsWindowEnabled());
     425                m_StartButton.EnableWindow(m_FilterGraph.m_pFilterGraph == NULL);
     426                m_StopButton.EnableWindow(m_FilterGraph.m_pFilterGraph != NULL);
     427        }
    419428
    420429// Window Message Handelrs
     
    451460                m_StopButton.EnableWindow(FALSE);
    452461                _W(CenterWindow());
     462                UpdateControls();
    453463                #if _DEVELOPMENT
     464                // TODO: ...
    454465                #endif // _DEVELOPMENT
    455466                return TRUE;
     
    619630                _ATLCATCHALL()
    620631                {
    621                         m_StartButton.EnableWindow(TRUE);
     632                        ReleaseFilterGraph();
     633                        UpdateControls();
    622634                        _ATLRETHROW;
    623635                }
    624                 m_StopButton.EnableWindow(TRUE);
     636                UpdateControls();
    625637                return 0;
    626638        }
     
    636648                _ATLCATCHALL()
    637649                {
    638                         m_StopButton.EnableWindow(TRUE);
     650                        UpdateControls();
    639651                        _ATLRETHROW;
    640652                }
    641                 m_StartButton.EnableWindow(TRUE);
     653                UpdateControls();
    642654                if(!m_sLog.IsEmpty())
    643655                {
Note: See TracChangeset for help on using the changeset viewer.