Changeset 104
- Timestamp:
- Aug 26, 2012, 6:39:30 AM (11 years ago)
- Location:
- trunk/Utilities/CaptureClock
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/CaptureClock/CaptureClock_i.c
r103 r104 7 7 8 8 /* File created by MIDL compiler version 7.00.0555 */ 9 /* at Sun Aug 26 16: 17:5020129 /* at Sun Aug 26 16:38:39 2012 10 10 */ 11 11 /* Compiler settings for CaptureClock.idl: -
trunk/Utilities/CaptureClock/CaptureClock_i.h
r103 r104 5 5 6 6 /* File created by MIDL compiler version 7.00.0555 */ 7 /* at Sun Aug 26 16: 17:5020127 /* at Sun Aug 26 16:38:39 2012 8 8 */ 9 9 /* Compiler settings for CaptureClock.idl: -
trunk/Utilities/CaptureClock/MainDialog.h
r103 r104 417 417 return pCapturePin ? pCapturePin : pAssumedCapturePin; 418 418 } 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 } 419 428 420 429 // Window Message Handelrs … … 451 460 m_StopButton.EnableWindow(FALSE); 452 461 _W(CenterWindow()); 462 UpdateControls(); 453 463 #if _DEVELOPMENT 464 // TODO: ... 454 465 #endif // _DEVELOPMENT 455 466 return TRUE; … … 619 630 _ATLCATCHALL() 620 631 { 621 m_StartButton.EnableWindow(TRUE); 632 ReleaseFilterGraph(); 633 UpdateControls(); 622 634 _ATLRETHROW; 623 635 } 624 m_StopButton.EnableWindow(TRUE);636 UpdateControls(); 625 637 return 0; 626 638 } … … 636 648 _ATLCATCHALL() 637 649 { 638 m_StopButton.EnableWindow(TRUE);650 UpdateControls(); 639 651 _ATLRETHROW; 640 652 } 641 m_StartButton.EnableWindow(TRUE);653 UpdateControls(); 642 654 if(!m_sLog.IsEmpty()) 643 655 {
Note: See TracChangeset
for help on using the changeset viewer.