source: trunk/DirectShowSpy/FilterGraphSpy.cpp @ 231

Last change on this file since 231 was 231, checked in by roman, 8 years ago

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

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2014
3// Created by Roman Ryltsov roman@alax.info
4
5#include "stdafx.h"
6#include "resource.h"
7
8////////////////////////////////////////////////////////////
9// DoGraphBuilderCallbackPropertySheetModal
10
11#include "GraphBuilderCallbackPropertySheet.h"
12
13#if defined(_WIN64)
14        extern "C" __declspec(dllexport) 
15#else
16        #pragma comment(linker, "/EXPORT:DoGraphBuilderCallbackPropertySheetModal=_DoGraphBuilderCallbackPropertySheetModal@0,PRIVATE")
17        extern "C" // __declspec(dllexport)
18#endif // defined(_WIN64)
19
20HRESULT STDMETHODCALLTYPE DoGraphBuilderCallbackPropertySheetModal() throw()
21{
22        _ATLTRY
23        {
24                CSingleThreadedApartment SingleThreadedApartment;
25                _W(AtlInitCommonControls(ICC_WIN95_CLASSES | ICC_COOL_CLASSES | ICC_STANDARD_CLASSES));
26                CGraphBuilderCallbackPropertySheet PropertySheet;
27                PropertySheet.DoModal(GetActiveWindow());
28        }
29        _ATLCATCH(Exception)
30        {
31                _C(Exception);
32        }
33        return S_OK;
34}
35
36////////////////////////////////////////////////////////////
37// DoFilterGraphListPropertySheetModal
38
39#include "FilterGraphList.h"
40
41#if defined(_WIN64)
42        extern "C" __declspec(dllexport) 
43#else
44        #pragma comment(linker, "/EXPORT:DoFilterGraphListPropertySheetModal=_DoFilterGraphListPropertySheetModal@0,PRIVATE")
45        extern "C" // __declspec(dllexport)
46#endif // defined(_WIN64)
47
48HRESULT STDMETHODCALLTYPE DoFilterGraphListPropertySheetModal() throw()
49{
50        _ATLTRY
51        {
52                CSingleThreadedApartment SingleThreadedApartment;
53                _W(AtlInitCommonControls(ICC_WIN95_CLASSES | ICC_COOL_CLASSES | ICC_STANDARD_CLASSES));
54                CFilterGraphListPropertySheet PropertySheet;
55                PropertySheet.DoModal(GetActiveWindow());
56        }
57        _ATLCATCH(Exception)
58        {
59                _C(Exception);
60        }
61        return S_OK;
62}
63
Note: See TracBrowser for help on using the repository browser.