source: trunk/Utilities/Miscellaneous/MfcWindowlessVideoRenderer01/MainDialog.h @ 937

Last change on this file since 937 was 281, checked in by roman, 10 years ago
File size: 1.4 KB
Line 
1////////////////////////////////////////////////////////////
2// MainDialog.h : header file
3//
4// Copyright (C) Alax.Info, 2006-2008
5// http://alax.info
6//
7// A permission to use the source code is granted as long as reference to
8// source website http://alax.info is retained.
9//
10// Created by Roman Ryltsov roman@alax.info
11//
12// $Id: MainDialog.h 14 2008-11-19 09:23:16Z alax $
13
14#pragma once
15
16#include <dshow.h>
17#include <d3d9.h>
18#include <vmr9.h>
19
20#pragma comment(lib, "strmiids.lib")
21
22// CMainDialog dialog
23class CMainDialog : public CDialog
24{
25// Construction
26public:
27        CMainDialog(CWnd* pParent = NULL);      // standard constructor
28
29// Dialog Data
30        enum { IDD = IDD_MFCWINDOWLESSVIDEORENDERER01_DIALOG };
31
32        protected:
33        virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
34
35// Implementation
36public:
37
38        class CGraph
39        {
40        public:
41                CComPtr<IGraphBuilder> m_pGraphBuilder;
42                CComPtr<IVMRWindowlessControl9> m_pVmrWindowlessControl9;
43
44        public:
45        // CGraph
46        };
47
48protected:
49        HICON m_hIcon;
50        CGraph m_pGraphs[2];
51
52        // Generated message map functions
53        afx_msg BOOL OnInitDialog();
54        afx_msg VOID OnDestroy();
55        afx_msg void OnPaint();
56        afx_msg HCURSOR OnQueryDragIcon();
57        afx_msg void OnBnClickedStart();
58        afx_msg void OnBnClickedStop();
59
60DECLARE_MESSAGE_MAP()
61
62public:
63        VOID CreateGraph(CGraph& Graph, INT nControlIdentifier);
64        VOID DestroyGraph(CGraph& Graph);
65};
Note: See TracBrowser for help on using the repository browser.