Ignore:
Timestamp:
Jan 9, 2014, 2:51:09 PM (8 years ago)
Author:
roman
Message:

Added IFilterGraphHelper::DoPropertyFrameModal? UI for filter graph review, also available from graph list Properties button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DirectShowSpy/Helper.cpp

    r199 r231  
    11////////////////////////////////////////////////////////////
    2 // Copyright (C) Roman Ryltsov, 2008-2013
     2// Copyright (C) Roman Ryltsov, 2008-2014
    33// Created by Roman Ryltsov roman@alax.info
    44
     
    66#include "resource.h"
    77#include "FilterGraphHelper.h"
     8
     9////////////////////////////////////////////////////////////
     10// Test
     11
     12#if _DEVELOPMENT
     13
     14COMPILER_MESSAGE("Development: CFilterGraphHelper::DoPropertyFrameModal as Test")
     15
     16#if defined(_WIN64)
     17        extern "C" __declspec(dllexport)
     18#else
     19        #pragma comment(linker, "/EXPORT:Test=_Test@0,PRIVATE")
     20        extern "C" // __declspec(dllexport)
     21#endif // defined(_WIN64)
     22
     23HRESULT STDMETHODCALLTYPE Test() throw()
     24{
     25        _ATLTRY
     26        {
     27                CSingleThreadedApartment SingleThreadedApartment;
     28                CGenericFilterGraph FilterGraph;
     29                FilterGraph.CoCreateInstance();
     30                __C(FilterGraph.m_pFilterGraph->RenderFile(_T("E:\\Media\\Robotica_1080.wmv"), NULL));
     31                CLocalObjectPtr<CFilterGraphHelper> pHelper;
     32                pHelper->SetFilterGraph(FilterGraph.m_pFilterGraph);
     33                pHelper->DoPropertyFrameModal(0);
     34        }
     35        _ATLCATCH(Exception)
     36        {
     37                _C(Exception);
     38        }
     39        return S_OK;
     40}
     41
     42#endif // _DEVELOPMENT
Note: See TracChangeset for help on using the changeset viewer.